Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72298 - sandbox/conversion/libs/conversion_ext/test
From: vicente.botet_at_[hidden]
Date: 2011-05-31 03:43:04


Author: viboes
Date: 2011-05-31 03:43:03 EDT (Tue, 31 May 2011)
New Revision: 72298
URL: http://svn.boost.org/trac/boost/changeset/72298

Log:
Conversion: Simplifying assign_to overloading
Text files modified:
   sandbox/conversion/libs/conversion_ext/test/extrinsec.cpp | 4 ++--
   sandbox/conversion/libs/conversion_ext/test/helper.hpp | 4 ++--
   sandbox/conversion/libs/conversion_ext/test/interval.cpp | 1 -
   sandbox/conversion/libs/conversion_ext/test/optional.cpp | 1 -
   4 files changed, 4 insertions(+), 6 deletions(-)

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-05-31 03:43:03 EDT (Tue, 31 May 2011)
@@ -25,7 +25,7 @@
     return A();
   }
 
- A& assign_to(A& to, const B&, boost::conversion::dummy::type_tag<A> const&) {
+ A& assign_to(A& to, const B&) {
     return to;
   }
 
@@ -33,7 +33,7 @@
     return B();
   }
 
- B& assign_to(B& to, const C&, boost::conversion::dummy::type_tag<B> const&) {
+ B& assign_to(B& to, const C&) {
     return to;
   }
 

Modified: sandbox/conversion/libs/conversion_ext/test/helper.hpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/helper.hpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/helper.hpp 2011-05-31 03:43:03 EDT (Tue, 31 May 2011)
@@ -58,14 +58,14 @@
         return A1();
     }
 
- A1& assign_to(A1& to, const B1&, boost::conversion::dummy::type_tag<A1> const&) {
+ A1& assign_to(A1& to, const B1&) {
         return to;
     }
     A2 convert_to(const B2&, boost::conversion::dummy::type_tag<A2> const&) {
         return A2();
     }
 
- A2& assign_to(A2& to, const B2&, boost::conversion::dummy::type_tag<A2> const&) {
+ A2& assign_to(A2& to, const B2&) {
         return to;
     }
 

Modified: sandbox/conversion/libs/conversion_ext/test/interval.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/interval.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/interval.cpp 2011-05-31 03:43:03 EDT (Tue, 31 May 2011)
@@ -26,7 +26,6 @@
                 boost::numeric::interval<B1>(b1,b2)));
     boost::numeric::interval<A1> a3;
     a3= boost::conversion::convert_to<boost::numeric::interval<A1> >(b);
- //a3= convert_to<boost::numeric::interval<A1> >(b);
 
 }
 void explicit_assign_to() {

Modified: sandbox/conversion/libs/conversion_ext/test/optional.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/optional.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/optional.cpp 2011-05-31 03:43:03 EDT (Tue, 31 May 2011)
@@ -36,7 +36,6 @@
   boost::optional<A1> a1(boost::conversion::convert_to<boost::optional<A1> >(b));
   boost::optional<A1> a3;
   a3=boost::conversion::convert_to<boost::optional<A1> >(b);
- //a3=convert_to<boost::optional<A1> >(b);
   boost::optional<A1> a2(boost::conversion::convert_to<boost::optional<A1> >(boost::optional<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