-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Description
Using latest commit, C4996 errors and warnings spew on every string manipulation function calls:
std::strcpy(Warning)std::strcat(Warning)std::copy(Error - compile fail) on non-iterator/pointer destination
Error C4996 'std::copy::_Unchecked_iterators::_Deprecate': Call to 'std::copy' 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'
changing std::copy(m_start, m_end, buf.data()); to std::copy(m_start, m_end, buf.begin()); fix this problem.
warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
I think turning off the warning like proposed on #453 before might be enough but probably not a clean solution.