From 24ef5223bb688e91369d69bccd22b522efd5c5a3 Mon Sep 17 00:00:00 2001 From: Artyom Beilis Date: Sat, 10 Jun 2017 14:24:27 +0300 Subject: [PATCH] Fixed workaround version for MSVC 2017 --- include/boost/nowide/utf8_codecvt.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/nowide/utf8_codecvt.hpp b/include/boost/nowide/utf8_codecvt.hpp index 2d8d393..0b63a64 100644 --- a/include/boost/nowide/utf8_codecvt.hpp +++ b/include/boost/nowide/utf8_codecvt.hpp @@ -21,7 +21,7 @@ namespace nowide { // BOOST_STATIC_ASSERT(sizeof(std::mbstate_t)>=2); -#ifdef _MSC_VER +#if defined _MSC_VER && _MSC_VER < 1700 // MSVC do_length is non-standard it counts wide characters instead of narrow and does not change mbstate #define BOOST_NOWIDE_DO_LENGTH_MBSTATE_CONST #endif