Skip to content

error C4996: 'strerror' when reading file #422

Description

Hello (sorry for my english...),

I have an error when reading file,with this code :
std::ifstream i(fileName); nlohmann::json j; i >> j; std::cout << j;
here is the error message:
warning C4996: '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.

I'm on Visual Studio 2017, and to avoid this message i have to disable SDL Check, so compiler consider it as simple warning, but i think this issue should be revised

Many thanks in advance

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions