-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strerror throwing error in compiler VS2015 #403
Comments
I understand the issue. We currently use // immediately abort if stream is erroneous
if (s.fail())
{
throw std::invalid_argument("stream error: " + std::string(strerror(errno)));
} As |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
strerror is deprecated and VS won't compile with it.
I'm using an ifstream, that's when the error it thrown.
The exact error is below:
'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. Creation_Kit c:\...\json.hpp 8998
The text was updated successfully, but these errors were encountered: