easyloggingpp
easyloggingpp copied to clipboard
codecvt_utf8_utf16 is deprecated and error compile with VS2017 if set ELPP_UNICODE macros
Using current release (9.96.7). Error for this line:
std::locale elppUnicodeLocaleWindows(elppUnicodeLocale, new std::codecvt_utf8_utf16<wchar_t>);
Error | C4996 | 'std::codecvt_utf8_utf16<wchar_t,1114111,0>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the
I solved this by putting #define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING at the beginning of easylogging++.h.