You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I understand the issue. We currently use strerror in one situation:
// immediately abort if stream is erroneousif (s.fail())
{
throwstd::invalid_argument("stream error: " + std::string(strerror(errno)));
}
As strerror_s seems not to be portable, we cannot easily get rid of the call. Maybe dropping the descriptive string in the exception could be the solution here.
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: