We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa8fcef commit b43547cCopy full SHA for b43547c
src/socket.hpp
@@ -40,7 +40,7 @@ namespace netlib {
40
41
static std::error_condition socket_get_last_error(){
42
#ifdef _WIN32
43
- return WASGetLastError();
+ return std::make_error_condition(static_cast<std::errc>(WASGetLastError()));
44
#else
45
return std::make_error_condition(static_cast<std::errc>(errno));
46
#endif
0 commit comments