Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73399 - in sandbox/conversion/libs/conversion_ext: example test
From: vicente.botet_at_[hidden]
Date: 2011-07-27 07:46:51


Author: viboes
Date: 2011-07-27 07:46:49 EDT (Wed, 27 Jul 2011)
New Revision: 73399
URL: http://svn.boost.org/trac/boost/changeset/73399

Log:
conversion: conversion: a lot of changes going on for a concept based library allowing overloading of the provided functions.

Removed:
   sandbox/conversion/libs/conversion_ext/test/cyg.log
Text files modified:
   sandbox/conversion/libs/conversion_ext/example/no_throw.cpp | 1 +
   sandbox/conversion/libs/conversion_ext/test/extrinsec.cpp | 1 +
   sandbox/conversion/libs/conversion_ext/test/is_convertible.cpp | 2 ++
   sandbox/conversion/libs/conversion_ext/test/is_extrinsic_convertible.cpp | 2 ++
   sandbox/conversion/libs/conversion_ext/test/is_extrinsically_explicit_convertible.cpp | 7 ++++---
   sandbox/conversion/libs/conversion_ext/test/vector.cpp | 2 ++
   6 files changed, 12 insertions(+), 3 deletions(-)

Modified: sandbox/conversion/libs/conversion_ext/example/no_throw.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/example/no_throw.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/example/no_throw.cpp 2011-07-27 07:46:49 EDT (Wed, 27 Jul 2011)
@@ -25,6 +25,7 @@
   int t;
   try {
     t = convert_to<int>(str);
+ (void)t; // warning removal
     BOOST_ASSERT(false);
   } catch(...) {
     std::cout << " Not an integer" << std::endl;

Deleted: sandbox/conversion/libs/conversion_ext/test/cyg.log
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/cyg.log 2011-07-27 07:46:49 EDT (Wed, 27 Jul 2011)
+++ (empty file)
@@ -1,16 +0,0 @@
-warning: mismatched versions of Boost.Build engine and core
-warning: Boost.Build engine (bjam) is 03.1.19
-warning: Boost.Build core (at /cygdrive/d/boost/trunk/tools/build/v2) is 2011.04-svn
-...patience...
-...patience...
-...found 1636 targets...
-...updating 8 targets...
-gcc.compile.c++ ../../../bin.v2/libs/conversion_ext/test/overload.test/gcc-4.3.4/debug/overload.o
-gcc.compile.c++ ../../../bin.v2/libs/conversion_ext/test/overload.test/gcc-0x/debug/overload.o
-gcc.link ../../../bin.v2/libs/conversion_ext/test/overload.test/gcc-4.3.4/debug/overload.exe
-testing.capture-output ../../../bin.v2/libs/conversion_ext/test/overload.test/gcc-4.3.4/debug/overload.run
-**passed** ../../../bin.v2/libs/conversion_ext/test/overload.test/gcc-4.3.4/debug/overload.test
-gcc.link ../../../bin.v2/libs/conversion_ext/test/overload.test/gcc-0x/debug/overload.exe
-testing.capture-output ../../../bin.v2/libs/conversion_ext/test/overload.test/gcc-0x/debug/overload.run
-**passed** ../../../bin.v2/libs/conversion_ext/test/overload.test/gcc-0x/debug/overload.test
-...updated 8 targets...

Modified: sandbox/conversion/libs/conversion_ext/test/extrinsec.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/extrinsec.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/extrinsec.cpp 2011-07-27 07:46:49 EDT (Wed, 27 Jul 2011)
@@ -9,6 +9,7 @@
 //////////////////////////////////////////////////////////////////////////////
 
 
+#include <boost/conversion/implicit_convert_to.hpp>
 #include <boost/conversion/explicit_convert_to.hpp>
 #include <boost/conversion/convert_to.hpp>
 #include <boost/conversion/convertible_from.hpp>

Modified: sandbox/conversion/libs/conversion_ext/test/is_convertible.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/is_convertible.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/is_convertible.cpp 2011-07-27 07:46:49 EDT (Wed, 27 Jul 2011)
@@ -220,10 +220,12 @@
   BOOST_STATIC_ASSERT((!boost::is_convertible<const Array&, Function*>::value));
   BOOST_STATIC_ASSERT((!boost::is_convertible<const Array&, Function*const >::value));
 
+#if ! defined _MSC_VER
   BOOST_STATIC_ASSERT((!boost::is_convertible<Array&, Array>::value));
   BOOST_STATIC_ASSERT((!boost::is_convertible<Array&, const Array>::value));
   BOOST_STATIC_ASSERT((!boost::is_convertible<const Array&, Array>::value));
   BOOST_STATIC_ASSERT((!boost::is_convertible<const Array&, const Array>::value));
+#endif
 
   BOOST_STATIC_ASSERT(( boost::is_convertible<Array&, Array&>::value));
   BOOST_STATIC_ASSERT(( boost::is_convertible<Array&, const Array&>::value));

Modified: sandbox/conversion/libs/conversion_ext/test/is_extrinsic_convertible.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/is_extrinsic_convertible.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/is_extrinsic_convertible.cpp 2011-07-27 07:46:49 EDT (Wed, 27 Jul 2011)
@@ -221,10 +221,12 @@
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_convertible<const Array&, Function*>::value));
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_convertible<const Array&, Function*const >::value));
 
+#if ! defined _MSC_VER
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_convertible<Array&, Array>::value));
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_convertible<Array&, const Array>::value));
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_convertible<const Array&, Array>::value));
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_convertible<const Array&, const Array>::value));
+#endif
 
   BOOST_STATIC_ASSERT(( boost::conversion::is_extrinsically_convertible<Array&, Array&>::value));
   BOOST_STATIC_ASSERT(( boost::conversion::is_extrinsically_convertible<Array&, const Array&>::value));

Modified: sandbox/conversion/libs/conversion_ext/test/is_extrinsically_explicit_convertible.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/is_extrinsically_explicit_convertible.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/is_extrinsically_explicit_convertible.cpp 2011-07-27 07:46:49 EDT (Wed, 27 Jul 2011)
@@ -34,8 +34,8 @@
 
   template <> struct is_extrinsically_explicit_convertible< int, A > : true_type {};
   template <> struct is_extrinsically_explicit_convertible< double, A > : true_type {};
- template <> struct is_constructible< A, int, double > : true_type {};
- template <> struct is_constructible< A, A const& > : true_type {};
+ //template <> struct is_constructible< A, int, double > : true_type {};
+ //template <> struct is_constructible< A, A const& > : true_type {};
 }
 }
 #endif
@@ -249,11 +249,12 @@
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_explicit_convertible<const Array&, Function*>::value));
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_explicit_convertible<const Array&, Function*const >::value));
 
+#if ! defined _MSC_VER
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_explicit_convertible<Array&, Array>::value));
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_explicit_convertible<Array&, const Array>::value));
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_explicit_convertible<const Array&, Array>::value));
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_explicit_convertible<const Array&, const Array>::value));
-
+#endif
   // BUG BOOST_STATIC_ASSERT(( boost::conversion::is_extrinsically_explicit_convertible<Array&, Array&>::value));
   // BUG BOOST_STATIC_ASSERT(( boost::conversion::is_extrinsically_explicit_convertible<Array&, const Array&>::value));
   BOOST_STATIC_ASSERT((!boost::conversion::is_extrinsically_explicit_convertible<const Array&, Array&>::value));

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-07-27 07:46:49 EDT (Wed, 27 Jul 2011)
@@ -58,8 +58,10 @@
 
 int main( )
 {
+#if ! defined _MSC_VER
   explicit_convert_to();
   explicit_assign_to();
+#endif
   return boost::report_errors();
 }
 


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