|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83894 - trunk/libs/conversion/test
From: antoshkka_at_[hidden]
Date: 2013-04-14 03:53:46
Author: apolukhin
Date: 2013-04-14 03:53:45 EDT (Sun, 14 Apr 2013)
New Revision: 83894
URL: http://svn.boost.org/trac/boost/changeset/83894
Log:
Comment out two lexical_cast tests, not actual for C++11
Text files modified:
trunk/libs/conversion/test/lexical_cast_float_types_test.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Modified: trunk/libs/conversion/test/lexical_cast_float_types_test.cpp
==============================================================================
--- trunk/libs/conversion/test/lexical_cast_float_types_test.cpp (original)
+++ trunk/libs/conversion/test/lexical_cast_float_types_test.cpp 2013-04-14 03:53:45 EDT (Sun, 14 Apr 2013)
@@ -264,8 +264,11 @@
BOOST_CHECK_THROW(lexical_cast<test_t>("."), bad_lexical_cast);
BOOST_CHECK_THROW(lexical_cast<test_t>("-B"), bad_lexical_cast);
- BOOST_CHECK_THROW(lexical_cast<test_t>("0xB"), bad_lexical_cast);
- BOOST_CHECK_THROW(lexical_cast<test_t>("0x0"), bad_lexical_cast);
+
+ // Following two tests are not valid for C++11 compilers
+ //BOOST_CHECK_THROW(lexical_cast<test_t>("0xB"), bad_lexical_cast);
+ //BOOST_CHECK_THROW(lexical_cast<test_t>("0x0"), bad_lexical_cast);
+
BOOST_CHECK_THROW(lexical_cast<test_t>("--1.0"), bad_lexical_cast);
BOOST_CHECK_THROW(lexical_cast<test_t>("1.0e--1"), bad_lexical_cast);
BOOST_CHECK_THROW(lexical_cast<test_t>("1.0.0"), bad_lexical_cast);
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