Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72398 - sandbox/conversion/libs/conversion_ext/test
From: vicente.botet_at_[hidden]
Date: 2011-06-04 18:01:53


Author: viboes
Date: 2011-06-04 18:01:53 EDT (Sat, 04 Jun 2011)
New Revision: 72398
URL: http://svn.boost.org/trac/boost/changeset/72398

Log:
Conversion: fix bugs whith msvc which doesn't supports decltype as stated by the config file.

Text files modified:
   sandbox/conversion/libs/conversion_ext/test/pair.cpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: sandbox/conversion/libs/conversion_ext/test/pair.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/pair.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/pair.cpp 2011-06-04 18:01:53 EDT (Sat, 04 Jun 2011)
@@ -18,6 +18,8 @@
 
 using namespace boost;
 
+#if defined(BOOST_CONVERSION_ENABLE_CND)
+
 BOOST_STATIC_ASSERT(( boost::is_extrinsic_convertible<B1, A1>::value));
 BOOST_STATIC_ASSERT(( boost::is_extrinsic_convertible<B2, A2>::value));
 BOOST_STATIC_ASSERT(( !boost::is_constructible<std::pair<A1,A2>, std::pair<B1,B2> >::value));
@@ -27,6 +29,7 @@
 BOOST_STATIC_ASSERT(( !boost::is_assignable<B2, A2>::value));
 BOOST_STATIC_ASSERT(( !boost::is_assignable<std::pair<B1,B2>, std::pair<A1,A2> >::value));
 //BOOST_STATIC_ASSERT(( !boost::is_assignable<std::pair<B1,B2>&, std::pair<A1,A2> const& >::value));
+#endif
 
 void explicit_convert_to() {
     B1 b1;


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