Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80584 - trunk/libs/conversion
From: antoshkka_at_[hidden]
Date: 2012-09-18 16:11:06


Author: apolukhin
Date: 2012-09-18 16:11:05 EDT (Tue, 18 Sep 2012)
New Revision: 80584
URL: http://svn.boost.org/trac/boost/changeset/80584

Log:
Workaround MSVC2012 error in lexical_cast_test.cpp
Text files modified:
   trunk/libs/conversion/lexical_cast_test.cpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: trunk/libs/conversion/lexical_cast_test.cpp
==============================================================================
--- trunk/libs/conversion/lexical_cast_test.cpp (original)
+++ trunk/libs/conversion/lexical_cast_test.cpp 2012-09-18 16:11:05 EDT (Tue, 18 Sep 2012)
@@ -496,6 +496,11 @@
 
 void test_wallocator()
 {
+// Following test cause compilation error on MSVC2012:
+// (Reason: cannot convert from 'std::_Wrap_alloc<_Alloc>' to 'const my_allocator<CharT>')
+//
+// MSVC developer is notified about this issue
+#if !defined(_MSC_VER) || (_MSC_VER < 1700)
     typedef std::basic_string< wchar_t
                              , std::char_traits<wchar_t>
                              , my_allocator<wchar_t>
@@ -508,6 +513,7 @@
     BOOST_CHECK(boost::lexical_cast<my_string>(1) == L"1");
     BOOST_CHECK(boost::lexical_cast<my_string>(L"s") == s);
     BOOST_CHECK(boost::lexical_cast<my_string>(std::wstring(L"s")) == s);
+#endif
 }
 
 #endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk