Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70628 - in sandbox/opaque/libs/opaque/test: . new_class
From: vicente.botet_at_[hidden]
Date: 2011-03-27 09:51:41


Author: viboes
Date: 2011-03-27 09:51:39 EDT (Sun, 27 Mar 2011)
New Revision: 70628
URL: http://svn.boost.org/trac/boost/changeset/70628

Log:
Opaque: Adapt to some renamings
Text files modified:
   sandbox/opaque/libs/opaque/test/multi_level_conversion.cpp | 30 ++++++++++++++++++------------
   sandbox/opaque/libs/opaque/test/new_class/using_not_equal_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/private_opaque_test.cpp | 2 --
   3 files changed, 19 insertions(+), 15 deletions(-)

Modified: sandbox/opaque/libs/opaque/test/multi_level_conversion.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/multi_level_conversion.cpp (original)
+++ sandbox/opaque/libs/opaque/test/multi_level_conversion.cpp 2011-03-27 09:51:39 EDT (Sun, 27 Mar 2011)
@@ -19,64 +19,70 @@
 
 // Listing 7
 BOOST_OPAQUE_PUBLIC_TYPEDEF(double,mass1_leng2_per_time2);
+BOOST_OPAQUE_INHERIT_FROM_UNDERLYING(mass1_leng2_per_time2)
 BOOST_OPAQUE_PUBLIC_TYPEDEF(mass1_leng2_per_time2,energy);
+BOOST_OPAQUE_INHERIT_FROM_UNDERLYING(energy)
 BOOST_OPAQUE_PUBLIC_TYPEDEF(energy,kinetic_energy);
+BOOST_OPAQUE_INHERIT_FROM_UNDERLYING(kinetic_energy)
 BOOST_OPAQUE_PUBLIC_TYPEDEF(energy,potential_energy);
+BOOST_OPAQUE_INHERIT_FROM_UNDERLYING(potential_energy)
 BOOST_OPAQUE_PUBLIC_TYPEDEF(energy,heat_energy);
+BOOST_OPAQUE_INHERIT_FROM_UNDERLYING(heat_energy)
 BOOST_OPAQUE_PUBLIC_TYPEDEF(potential_energy,potential_energy2);
+BOOST_OPAQUE_INHERIT_FROM_UNDERLYING(potential_energy2)
 
 BOOST_OPAQUE_STATIC_ASSERT((
     is_same<
- mass1_leng2_per_time2::substituables,
+ mass1_leng2_per_time2::undelying_type_hierarchy,
         mpl::vector<double>
>::value),
     SSSSSSSSSSS,
- (mass1_leng2_per_time2::substituables)
+ (mass1_leng2_per_time2::undelying_type_hierarchy)
 );
 
 BOOST_OPAQUE_STATIC_ASSERT((
     mpl::contains<
- energy::substituables,
+ energy::undelying_type_hierarchy,
         mass1_leng2_per_time2
>::value),
     SSSSSSSSSSS,
- (energy::substituables)
+ (energy::undelying_type_hierarchy)
 );
 
 BOOST_OPAQUE_STATIC_ASSERT((
     mpl::contains<
- energy::substituables,
+ energy::undelying_type_hierarchy,
         double
>::value),
     SSSSSSSSSSS,
- (energy::substituables)
+ (energy::undelying_type_hierarchy)
 );
 
 BOOST_OPAQUE_STATIC_ASSERT((
     mpl::contains<
- potential_energy::substituables,
+ potential_energy::undelying_type_hierarchy,
         energy
>::value),
     SSSSSSSSSSS,
- (potential_energy::substituables)
+ (potential_energy::undelying_type_hierarchy)
 );
 
 BOOST_OPAQUE_STATIC_ASSERT((
     mpl::contains<
- potential_energy::substituables,
+ potential_energy::undelying_type_hierarchy,
         mass1_leng2_per_time2
>::value),
     SSSSSSSSSSS,
- (potential_energy::substituables)
+ (potential_energy::undelying_type_hierarchy)
 );
 
 BOOST_OPAQUE_STATIC_ASSERT((
     mpl::contains<
- potential_energy::substituables,
+ potential_energy::undelying_type_hierarchy,
         double
>::value),
     SSSSSSSSSSS,
- (potential_energy::substituables)
+ (potential_energy::undelying_type_hierarchy)
 );
 
 void public_multiple_levels() {

Modified: sandbox/opaque/libs/opaque/test/new_class/using_not_equal_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_not_equal_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_not_equal_pass.cpp 2011-03-27 09:51:39 EDT (Sun, 27 Mar 2011)
@@ -9,7 +9,7 @@
 //////////////////////////////////////////////////////////////////////////////
 
 #include <boost/opaque/new_class_macro.hpp>
-//~ #include <boost/opaque/new_class.hpp>
+//#include <boost/opaque/new_class.hpp>
 #include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/detail/lightweight_test.hpp>

Modified: sandbox/opaque/libs/opaque/test/private_opaque_test.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/private_opaque_test.cpp (original)
+++ sandbox/opaque/libs/opaque/test/private_opaque_test.cpp 2011-03-27 09:51:39 EDT (Sun, 27 Mar 2011)
@@ -14,8 +14,6 @@
 
 using namespace boost;
 
-
-
 BOOST_OPAQUE_PRIVATE_TYPEDEF(unsigned,private_unsigned);
 BOOST_OPAQUE_PRIVATE_TYPEDEF(unsigned,private_unsigned2);
 


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