diff --git a/lexical_cast_test.cpp b/lexical_cast_test.cpp index e12cfe7..6bd15da 100644 --- a/lexical_cast_test.cpp +++ b/lexical_cast_test.cpp @@ -474,6 +474,11 @@ void test_wtraits() void test_allocator() { +// 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< char , std::char_traits , my_allocator @@ -486,6 +491,7 @@ void test_allocator() BOOST_CHECK(boost::lexical_cast(1) == "1"); BOOST_CHECK(boost::lexical_cast("s") == s); BOOST_CHECK(boost::lexical_cast(std::string("s")) == s); +#endif } void test_wallocator()