From 8705038cd276a48c726d3e33e154a833f9feb6cf Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Wed, 12 Sep 2012 03:58:26 +0000 Subject: [PATCH] Workaround MSVC2012 error in lexical_cast_test.cpp [SVN r80503] --- lexical_cast_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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()