diff --git a/lexical_cast_test.cpp b/lexical_cast_test.cpp index 6bd15da..bc4184f 100644 --- a/lexical_cast_test.cpp +++ b/lexical_cast_test.cpp @@ -496,6 +496,11 @@ void test_allocator() void test_wallocator() { +// Following test cause compilation error on MSVC2012: +// (Reason: cannot convert from 'std::_Wrap_alloc<_Alloc>' to 'const my_allocator') +// +// MSVC developer is notified about this issue +#if !defined(_MSC_VER) || (_MSC_VER < 1700) typedef std::basic_string< wchar_t , std::char_traits , my_allocator @@ -508,6 +513,7 @@ void test_wallocator() BOOST_CHECK(boost::lexical_cast(1) == L"1"); BOOST_CHECK(boost::lexical_cast(L"s") == s); BOOST_CHECK(boost::lexical_cast(std::wstring(L"s")) == s); +#endif } #endif