Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

【warning C4996】Why is there such a warning? #226

Open
webees opened this issue May 10, 2018 · 5 comments
Open

【warning C4996】Why is there such a warning? #226

webees opened this issue May 10, 2018 · 5 comments

Comments

@webees
Copy link

webees commented May 10, 2018

warning C4996

'boost::asio::basic_socket::cancel': By default, this function always fails with operation_not_supported when used on Windows XP, Windows Server 2003, or earlier. Consult documentation for details.

test C:\lib\simplewebserver\client_http.hpp 129

@eidheim
Copy link
Owner

eidheim commented May 12, 2018

I'm no help on Windows, but these systems sounds pretty old. At some point, there will be systems that we cannot support, sorry.

@webees
Copy link
Author

webees commented May 12, 2018

I am in win10, vs2017.

@eidheim
Copy link
Owner

eidheim commented May 13, 2018

Aha, so this is a warning since cancel with error code is deprecated. I'll have to look into all the changes that has been made, and other deprecations that have been made. I know that also asio::io_service has been renamed to asio::io_context.

Will look through this during the summer, and make the necessary changes to remove deprecated warnings and still support older systems.

@webees
Copy link
Author

webees commented May 15, 2018

Thank you for your help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants