Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72417 - sandbox/conversion/libs/conversion_ext/test
From: vicente.botet_at_[hidden]
Date: 2011-06-05 13:24:44


Author: viboes
Date: 2011-06-05 13:24:43 EDT (Sun, 05 Jun 2011)
New Revision: 72417
URL: http://svn.boost.org/trac/boost/changeset/72417

Log:
Conversion: fix some bugs when enable is not used
Text files modified:
   sandbox/conversion/libs/conversion_ext/test/array.cpp | 2 ++
   sandbox/conversion/libs/conversion_ext/test/tuple.cpp | 2 ++
   sandbox/conversion/libs/conversion_ext/test/vector.cpp | 2 ++
   3 files changed, 6 insertions(+), 0 deletions(-)

Modified: sandbox/conversion/libs/conversion_ext/test/array.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/array.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/array.cpp 2011-06-05 13:24:43 EDT (Sun, 05 Jun 2011)
@@ -15,10 +15,12 @@
 #include "helper.hpp"
 #include <boost/static_assert.hpp>
 
+#if defined(BOOST_CONVERSION_ENABLE_CND)
 BOOST_STATIC_ASSERT(( !boost::conversion::default_converter_condition< boost::array<A1,3>, boost::array<B1,3> >::value));
 BOOST_STATIC_ASSERT(( boost::conversion::default_assigner_condition< boost::array<A1,3>, boost::array<B1,3> >::value));
 BOOST_STATIC_ASSERT(( boost::is_extrinsic_assignable< A1, B1 >::value));
 BOOST_STATIC_ASSERT(( boost::is_extrinsic_assignable< boost::array<A1,3>, boost::array<B1,3> >::value));
+#endif
 
 using namespace boost;
 

Modified: sandbox/conversion/libs/conversion_ext/test/tuple.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/tuple.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/tuple.cpp 2011-06-05 13:24:43 EDT (Sun, 05 Jun 2011)
@@ -17,7 +17,9 @@
 using namespace boost;
 #include <boost/static_assert.hpp>
 
+#if defined(BOOST_CONVERSION_ENABLE_CND)
 BOOST_STATIC_ASSERT(( !boost::conversion::default_converter_condition< fusion::tuple<A1,A2>, fusion::tuple<B1,B2> >::value));
+#endif
 
 void explicit_convert_to() {
     B1 b1;

Modified: sandbox/conversion/libs/conversion_ext/test/vector.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/vector.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/vector.cpp 2011-06-05 13:24:43 EDT (Sun, 05 Jun 2011)
@@ -18,10 +18,12 @@
 
 using namespace boost;
 
+#if defined(BOOST_CONVERSION_ENABLE_CND)
 BOOST_STATIC_ASSERT(( !boost::conversion::default_converter_condition< std::vector<A1>, std::vector<B1> >::value));
 BOOST_STATIC_ASSERT(( boost::conversion::default_assigner_condition< std::vector<A1>, std::vector<B1> >::value));
 BOOST_STATIC_ASSERT(( boost::is_extrinsic_assignable< A1, B1 >::value));
 BOOST_STATIC_ASSERT(( boost::is_extrinsic_assignable< std::vector<A1>, std::vector<B1> >::value));
+#endif
 
 #if 0
 BOOST_STATIC_ASSERT((


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