boostorg / locale

Boost.Locale
Boost Software License 1.0
31 stars 70 forks source link

Fix some MSVC warnings #137

Closed Flamefire closed 1 year ago

Flamefire commented 1 year ago

Define _SCL_SECURE_NO_WARNINGS for building the library to avoid "Call to 'std::copy' with parameters that may be unsafe" in src\boost\locale\std\converter.cpp This also allows to remove the multiple suppressions of C4996

Introduce wrappers with suppressed warning in test code so that the public headers will still throw the warning if there is any (which must not be the case as headers are supposed to be warning-free)

Closes #136