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
Hi, first of all thank you for providing and maintaining this great library.
I encountered this warning/error(depending on SDL check flag) while I've been testing my project with v140 toolset.
When I write codes somewhat like below,
C4996: 'std::uninitialized_copy_n::_Unchecked_iterators::_Deprecate': Call to 'std::uninitialized_copy_n' with parameters that may be unsafe
- this call relies on the caller to check that the passed values are correct.
To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
It seems to happen only when I set the project toolset to v140, and use wide characters.
( It works perfect if I use visual studio 2017(v141 toolset) or v140 toolset with narrow characters. )
I read through the issues somewhat similar to mine, but unfortunately I couldn't get any solutions from them.
Is there something that I can do to successfully build my project in that environment?
( Defining _SCL_SECURE_NO_WARNINGS is not a good option for me )
The text was updated successfully, but these errors were encountered:
vitaut
changed the title
Got a compile time error (C4996) when building an application with v140 toolset
Got C4996 warning when building an application with v140 toolset
Jan 15, 2021
Hi, first of all thank you for providing and maintaining this great library.
I encountered this warning/error(depending on SDL check flag) while I've been testing my project with v140 toolset.
When I write codes somewhat like below,
I got this compile error, which says
It seems to happen only when I set the project toolset to v140, and use wide characters.
( It works perfect if I use visual studio 2017(v141 toolset) or v140 toolset with narrow characters. )
I read through the issues somewhat similar to mine, but unfortunately I couldn't get any solutions from them.
Is there something that I can do to successfully build my project in that environment?
( Defining
_SCL_SECURE_NO_WARNINGS
is not a good option for me )The text was updated successfully, but these errors were encountered: