|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80503 - trunk/libs/conversion
From: antoshkka_at_[hidden]
Date: 2012-09-11 23:58:26
Author: apolukhin
Date: 2012-09-11 23:58:26 EDT (Tue, 11 Sep 2012)
New Revision: 80503
URL: http://svn.boost.org/trac/boost/changeset/80503
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-11 23:58:26 EDT (Tue, 11 Sep 2012)
@@ -474,6 +474,11 @@
void test_allocator()
{
+// 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< char
, std::char_traits<char>
, my_allocator<char>
@@ -486,6 +491,7 @@
BOOST_CHECK(boost::lexical_cast<my_string>(1) == "1");
BOOST_CHECK(boost::lexical_cast<my_string>("s") == s);
BOOST_CHECK(boost::lexical_cast<my_string>(std::string("s")) == s);
+#endif
}
void test_wallocator()
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