Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65820 - in sandbox/opaque/libs/opaque: example test test/new_class
From: vicente.botet_at_[hidden]
Date: 2010-10-07 18:42:06


Author: viboes
Date: 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
New Revision: 65820
URL: http://svn.boost.org/trac/boost/changeset/65820

Log:
Opaque:
* Moved all to the opaque namespace
Text files modified:
   sandbox/opaque/libs/opaque/example/ex1.cpp | 3 ++-
   sandbox/opaque/libs/opaque/example/ex2.cpp | 1 +
   sandbox/opaque/libs/opaque/example/ex3.cpp | 15 +++++++++++++--
   sandbox/opaque/libs/opaque/example/ex4.cpp | 1 +
   sandbox/opaque/libs/opaque/test/add_pub_siblings_fail.cpp | 4 ----
   sandbox/opaque/libs/opaque/test/add_siblings_fail.cpp | 4 ----
   sandbox/opaque/libs/opaque/test/assign_pub_siblings_fail.cpp | 4 ----
   sandbox/opaque/libs/opaque/test/assign_publ_siblings_fail.cpp | 4 ----
   sandbox/opaque/libs/opaque/test/assign_siblings_fail.cpp | 4 ----
   sandbox/opaque/libs/opaque/test/new_class/assign_down_fail.cpp | 6 +++---
   sandbox/opaque/libs/opaque/test/new_class/assign_siblings_fail.cpp | 10 +++++-----
   sandbox/opaque/libs/opaque/test/new_class/assign_up_fail.cpp | 6 +++---
   sandbox/opaque/libs/opaque/test/new_class/copy_construct_from_non_convertible_fail.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/equal_fail.cpp | 6 +++---
   sandbox/opaque/libs/opaque/test/new_class/greater_than_equal_fail.cpp | 6 +++---
   sandbox/opaque/libs/opaque/test/new_class/greater_than_fail.cpp | 6 +++---
   sandbox/opaque/libs/opaque/test/new_class/hiding_less_than_fail.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/hiding_plus_fail.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/less_than_equal_fail.cpp | 6 +++---
   sandbox/opaque/libs/opaque/test/new_class/less_than_fail.cpp | 6 +++---
   sandbox/opaque/libs/opaque/test/new_class/minus_assign_fail.cpp | 6 +++---
   sandbox/opaque/libs/opaque/test/new_class/multiply_assign_fail.cpp | 6 +++---
   sandbox/opaque/libs/opaque/test/new_class/not_equal_fail.cpp | 6 +++---
   sandbox/opaque/libs/opaque/test/new_class/plus_assign_fail.cpp | 6 +++---
   sandbox/opaque/libs/opaque/test/new_class/plus_fail.cpp | 6 +++---
   sandbox/opaque/libs/opaque/test/new_class/regular_pass.cpp | 8 ++++----
   sandbox/opaque/libs/opaque/test/new_class/using_divide_pass.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/using_equal_pass.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/using_greater_than_equal_pass.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/using_greater_than_pass.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/using_less_than_equal_pass.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/using_less_than_pass.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/using_minus_assign_pass.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/using_multiply_assign_pass.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/using_multiply_pass.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/using_not_equal_pass.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/using_plus_assign_pass.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class/using_plus_pass.cpp | 7 ++++---
   sandbox/opaque/libs/opaque/test/new_class_test.cpp | 10 +++++-----
   sandbox/opaque/libs/opaque/test/new_type_test.cpp | 14 +++++++-------
   sandbox/opaque/libs/opaque/test/private_opaque_explicit_conversion_fail.cpp | 5 -----
   41 files changed, 131 insertions(+), 128 deletions(-)

Modified: sandbox/opaque/libs/opaque/example/ex1.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/example/ex1.cpp (original)
+++ sandbox/opaque/libs/opaque/example/ex1.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -13,6 +13,7 @@
 #include <boost/test/unit_test.hpp>
 
 using namespace boost;
+using namespace boost::opaque;
 using namespace boost::unit_test;
 
 #if 0
@@ -25,7 +26,7 @@
 }
 #else
 struct private_unsigned_tag;
-typedef boost::new_type<unsigned, private_unsigned_tag, boost::mpl::vector<
+typedef boost::opaque::new_type<unsigned, private_unsigned_tag, boost::mpl::vector<
     opaque::using_totally_ordered1<opaque::boolean>
> > Int;
 //~ BOOST_OPAQUE_PRIVATE_TYPEDEF(int, Int);

Modified: sandbox/opaque/libs/opaque/example/ex2.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/example/ex2.cpp (original)
+++ sandbox/opaque/libs/opaque/example/ex2.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -13,6 +13,7 @@
 #include <boost/test/unit_test.hpp>
 
 using namespace boost;
+using namespace boost::opaque;
 using namespace boost::unit_test;
 
 

Modified: sandbox/opaque/libs/opaque/example/ex3.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/example/ex3.cpp (original)
+++ sandbox/opaque/libs/opaque/example/ex3.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -13,22 +13,33 @@
 #include <boost/test/unit_test.hpp>
 
 using namespace boost;
+using namespace boost::opaque;
 using namespace boost::unit_test;
 
 // Listing 7
+#if 1
 BOOST_OPAQUE_PUBLIC_TYPEDEF(double,mass1_leng2_per_time2);
 BOOST_OPAQUE_PUBLIC_TYPEDEF(mass1_leng2_per_time2,energy);
 BOOST_OPAQUE_PUBLIC_TYPEDEF(energy,kinetic_energy);
 BOOST_OPAQUE_PUBLIC_TYPEDEF(energy,potential_energy);
 BOOST_OPAQUE_PUBLIC_TYPEDEF(energy,heat_energy);
+#else
+BOOST_OPAQUE_PUBLIC_CLASS(double,mass1_leng2_per_time2);
+BOOST_OPAQUE_PUBLIC_CLASS(mass1_leng2_per_time2,energy);
+BOOST_OPAQUE_PUBLIC_CLASS(energy,kinetic_energy);
+BOOST_OPAQUE_PUBLIC_CLASS(energy,potential_energy);
+BOOST_OPAQUE_PUBLIC_CLASS(energy,heat_energy);
+#endif
 
 void public_multiple_levels_test() {
     energy e;
+ energy e2;
     potential_energy p, q;
-
+
+ e = p;
     p = p + q; // ok
- e = e + q; // ok
     e = p + e; // ok
+ e = e + q; // ok
 }
 
 

Modified: sandbox/opaque/libs/opaque/example/ex4.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/example/ex4.cpp (original)
+++ sandbox/opaque/libs/opaque/example/ex4.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -12,6 +12,7 @@
 #include <boost/test/unit_test.hpp>
 
 using namespace boost;
+using namespace boost::opaque;
 using namespace boost::unit_test;
 
 // Listing 1

Modified: sandbox/opaque/libs/opaque/test/add_pub_siblings_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/add_pub_siblings_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/add_pub_siblings_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -10,10 +10,6 @@
 
 #include <boost/opaque/opaque.hpp>
 
-#include <boost/test/unit_test.hpp>
-
-using namespace boost;
-using namespace boost::unit_test;
 
 BOOST_OPAQUE_PRIVATE_TYPEDEF(int,A);
 BOOST_OPAQUE_PRIVATE_TYPEDEF(int,B);

Modified: sandbox/opaque/libs/opaque/test/add_siblings_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/add_siblings_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/add_siblings_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -10,10 +10,6 @@
 
 #include <boost/opaque/opaque.hpp>
 
-#include <boost/test/unit_test.hpp>
-
-using namespace boost;
-using namespace boost::unit_test;
 
 
 BOOST_OPAQUE_PRIVATE_TYPEDEF(int,A);

Modified: sandbox/opaque/libs/opaque/test/assign_pub_siblings_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/assign_pub_siblings_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/assign_pub_siblings_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -10,10 +10,6 @@
 
 #include <boost/opaque/opaque.hpp>
 
-#include <boost/test/unit_test.hpp>
-
-using namespace boost;
-using namespace boost::unit_test;
 
 BOOST_OPAQUE_PUBLIC_TYPEDEF(int,A);
 BOOST_OPAQUE_PUBLIC_TYPEDEF(int,B);

Modified: sandbox/opaque/libs/opaque/test/assign_publ_siblings_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/assign_publ_siblings_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/assign_publ_siblings_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -10,10 +10,6 @@
 
 #include <boost/opaque/opaque.hpp>
 
-#include <boost/test/unit_test.hpp>
-
-using namespace boost;
-using namespace boost::unit_test;
 
 BOOST_OPAQUE_PRIVATE_TYPEDEF(int,A);
 BOOST_OPAQUE_PRIVATE_TYPEDEF(int,B);

Modified: sandbox/opaque/libs/opaque/test/assign_siblings_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/assign_siblings_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/assign_siblings_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -10,10 +10,6 @@
 
 #include <boost/opaque/opaque.hpp>
 
-#include <boost/test/unit_test.hpp>
-
-using namespace boost;
-using namespace boost::unit_test;
 
 // Listing 5
 

Modified: sandbox/opaque/libs/opaque/test/new_class/assign_down_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/assign_down_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/assign_down_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,17 +8,17 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 
 typedef unsigned UT;
 
 // NEW_CLASS(NT1,UT)
-struct NT1 : boost::new_class<NT1, UT>
+struct NT1 : boost::opaque::new_class<NT1, UT>
 {
     typedef
- boost::new_class<NT1, UT>
+ boost::opaque::new_class<NT1, UT>
     base_type;
     
     NT1(){}

Modified: sandbox/opaque/libs/opaque/test/new_class/assign_siblings_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/assign_siblings_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/assign_siblings_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,17 +8,17 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 
 typedef unsigned UT;
 
 // NEW_CLASS(NT1,UT)
-struct NT1 : boost::new_class<NT1, UT>
+struct NT1 : boost::opaque::new_class<NT1, UT>
 {
     typedef
- boost::new_class<NT1, UT>
+ boost::opaque::new_class<NT1, UT>
     base_type;
     
     NT1(){}
@@ -33,10 +33,10 @@
 };
 
 // NEW_CLASS(NT2,UT)
-struct NT2 : boost::new_class<NT2, UT>
+struct NT2 : boost::opaque::new_class<NT2, UT>
 {
     typedef
- boost::new_class<NT2, UT>
+ boost::opaque::new_class<NT2, UT>
     base_type;
     
     NT2(){}

Modified: sandbox/opaque/libs/opaque/test/new_class/assign_up_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/assign_up_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/assign_up_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,17 +8,17 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 
 typedef unsigned UT;
 
 // NEW_CLASS(NT1,UT)
-struct NT1 : boost::new_class<NT1, UT>
+struct NT1 : boost::opaque::new_class<NT1, UT>
 {
     typedef
- boost::new_class<NT1, UT>
+ boost::opaque::new_class<NT1, UT>
     base_type;
     
     NT1(){}

Modified: sandbox/opaque/libs/opaque/test/new_class/copy_construct_from_non_convertible_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/copy_construct_from_non_convertible_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/copy_construct_from_non_convertible_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,7 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 

Modified: sandbox/opaque/libs/opaque/test/new_class/equal_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/equal_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/equal_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,7 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 
@@ -16,10 +16,10 @@
 typedef std::string NUT;
 
 // NEW_CLASS(NT1,UT)
-struct NT1 : boost::new_class<NT1, UT>
+struct NT1 : boost::opaque::new_class<NT1, UT>
 {
     typedef
- boost::new_class<NT1, UT>
+ boost::opaque::new_class<NT1, UT>
     base_type;
     
     NT1(){}

Modified: sandbox/opaque/libs/opaque/test/new_class/greater_than_equal_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/greater_than_equal_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/greater_than_equal_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,17 +8,17 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 
 typedef unsigned UT;
 
 // NEW_CLASS(NT1,UT)
-struct NT1 : boost::new_class<NT1, UT>
+struct NT1 : boost::opaque::new_class<NT1, UT>
 {
     typedef
- boost::new_class<NT1, UT>
+ boost::opaque::new_class<NT1, UT>
     base_type;
     
     NT1(){}

Modified: sandbox/opaque/libs/opaque/test/new_class/greater_than_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/greater_than_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/greater_than_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,17 +8,17 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 
 typedef unsigned UT;
 
 // NEW_CLASS(NT1,UT)
-struct NT1 : boost::new_class<NT1, UT>
+struct NT1 : boost::opaque::new_class<NT1, UT>
 {
     typedef
- boost::new_class<NT1, UT>
+ boost::opaque::new_class<NT1, UT>
     base_type;
     
     NT1(){}

Modified: sandbox/opaque/libs/opaque/test/new_class/hiding_less_than_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/hiding_less_than_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/hiding_less_than_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -19,7 +20,7 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
                 boost::opaque::using_less_than<>,
                 boost::opaque::hiding_less_than<>
@@ -27,7 +28,7 @@
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
                 boost::opaque::using_less_than<>,
             boost::opaque::hiding_less_than<>

Modified: sandbox/opaque/libs/opaque/test/new_class/hiding_plus_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/hiding_plus_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/hiding_plus_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -19,7 +20,7 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
                 boost::opaque::using_plus,
                 boost::opaque::hiding_plus
@@ -27,7 +28,7 @@
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
         boost::opaque::using_plus,
         boost::opaque::hiding_plus

Modified: sandbox/opaque/libs/opaque/test/new_class/less_than_equal_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/less_than_equal_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/less_than_equal_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,7 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 
@@ -16,10 +16,10 @@
 typedef std::string NUT;
 
 // NEW_CLASS(NT1,UT)
-struct NT1 : boost::new_class<NT1, UT>
+struct NT1 : boost::opaque::new_class<NT1, UT>
 {
     typedef
- boost::new_class<NT1, UT>
+ boost::opaque::new_class<NT1, UT>
     base_type;
     
     NT1(){}

Modified: sandbox/opaque/libs/opaque/test/new_class/less_than_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/less_than_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/less_than_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,7 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 
@@ -16,10 +16,10 @@
 typedef std::string NUT;
 
 // NEW_CLASS(NT1,UT)
-struct NT1 : boost::new_class<NT1, UT>
+struct NT1 : boost::opaque::new_class<NT1, UT>
 {
     typedef
- boost::new_class<NT1, UT>
+ boost::opaque::new_class<NT1, UT>
     base_type;
     
     NT1(){}

Modified: sandbox/opaque/libs/opaque/test/new_class/minus_assign_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/minus_assign_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/minus_assign_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,17 +8,17 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 
 typedef unsigned UT;
 
 // NEW_CLASS(NT1,UT)
-struct NT1 : boost::new_class<NT1, UT>
+struct NT1 : boost::opaque::new_class<NT1, UT>
 {
     typedef
- boost::new_class<NT1, UT>
+ boost::opaque::new_class<NT1, UT>
     base_type;
     
     NT1(){}

Modified: sandbox/opaque/libs/opaque/test/new_class/multiply_assign_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/multiply_assign_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/multiply_assign_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,17 +8,17 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 
 typedef unsigned UT;
 
 // NEW_CLASS(NT1,UT)
-struct NT1 : boost::new_class<NT1, UT>
+struct NT1 : boost::opaque::new_class<NT1, UT>
 {
     typedef
- boost::new_class<NT1, UT>
+ boost::opaque::new_class<NT1, UT>
     base_type;
     
     NT1(){}

Modified: sandbox/opaque/libs/opaque/test/new_class/not_equal_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/not_equal_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/not_equal_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,7 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 
@@ -16,10 +16,10 @@
 typedef std::string NUT;
 
 // NEW_CLASS(NT1,UT)
-struct NT1 : boost::new_class<NT1, UT>
+struct NT1 : boost::opaque::new_class<NT1, UT>
 {
     typedef
- boost::new_class<NT1, UT>
+ boost::opaque::new_class<NT1, UT>
     base_type;
     
     NT1(){}

Modified: sandbox/opaque/libs/opaque/test/new_class/plus_assign_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/plus_assign_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/plus_assign_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,17 +8,17 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 using namespace boost;
 
 typedef unsigned UT;
 
 // NEW_CLASS(NT1,UT)
-struct NT1 : boost::new_class<NT1, UT>
+struct NT1 : boost::opaque::new_class<NT1, UT>
 {
     typedef
- boost::new_class<NT1, UT>
+ boost::opaque::new_class<NT1, UT>
     base_type;
     
     NT1(){}

Modified: sandbox/opaque/libs/opaque/test/new_class/plus_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/plus_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/plus_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,7 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -19,13 +19,13 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
>
>

Modified: sandbox/opaque/libs/opaque/test/new_class/regular_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/regular_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/regular_pass.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,7 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,10 +20,10 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT>
+ boost::opaque::new_class<NT, UT>
 {
     typedef
- boost::new_class<NT, UT>
+ boost::opaque::new_class<NT, UT>
     base_type;
     
     NT(){}
@@ -70,7 +70,7 @@
 void opaque_static_cast_test() {
         NT a(1);
     UT2 i;
- i=opaque_static_cast<UT2>(a);
+ i=opaque::opaque_static_cast<UT2>(a);
     BOOST_CHECK(i==a.underlying());
 }
 

Modified: sandbox/opaque/libs/opaque/test/new_class/using_divide_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_divide_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_divide_pass.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,14 +21,14 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_divide
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_divide
>

Modified: sandbox/opaque/libs/opaque/test/new_class/using_equal_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_equal_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_equal_pass.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,14 +21,14 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_equal<>
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_equal<>
>

Modified: sandbox/opaque/libs/opaque/test/new_class/using_greater_than_equal_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_greater_than_equal_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_greater_than_equal_pass.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,14 +21,14 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_greater_than_equal<>
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_greater_than_equal<>
>

Modified: sandbox/opaque/libs/opaque/test/new_class/using_greater_than_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_greater_than_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_greater_than_pass.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,14 +21,14 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_greater_than<>
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_greater_than<>
>

Modified: sandbox/opaque/libs/opaque/test/new_class/using_less_than_equal_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_less_than_equal_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_less_than_equal_pass.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,14 +21,14 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_less_than_equal<>
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_less_than_equal<>
>

Modified: sandbox/opaque/libs/opaque/test/new_class/using_less_than_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_less_than_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_less_than_pass.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,14 +21,14 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_less_than<>
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_less_than<>
>

Modified: sandbox/opaque/libs/opaque/test/new_class/using_minus_assign_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_minus_assign_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_minus_assign_pass.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,14 +21,14 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_minus_assign
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_minus_assign
>

Modified: sandbox/opaque/libs/opaque/test/new_class/using_multiply_assign_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_multiply_assign_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_multiply_assign_pass.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,14 +21,14 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_multiply_assign
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_multiply_assign
>

Modified: sandbox/opaque/libs/opaque/test/new_class/using_multiply_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_multiply_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_multiply_pass.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,14 +21,14 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_multiply
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_multiply
>

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 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,14 +21,14 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_not_equal<>
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_not_equal<>
>

Modified: sandbox/opaque/libs/opaque/test/new_class/using_plus_assign_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_plus_assign_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_plus_assign_pass.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,14 +21,14 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_plus_assign
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_plus_assign
>

Modified: sandbox/opaque/libs/opaque/test/new_class/using_plus_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_plus_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_plus_pass.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -8,7 +8,8 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 
-#include <boost/opaque/opaque.hpp>
+#include <boost/opaque/new_class.hpp>
+#include <boost/opaque/meta_mixin/operators.hpp>
 
 #include <boost/test/unit_test.hpp>
 
@@ -20,14 +21,14 @@
 
 // NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
 struct NT :
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_plus
>
>
 {
     typedef
- boost::new_class<NT, UT
+ boost::opaque::new_class<NT, UT
     , boost::mpl::vector<
             boost::opaque::using_plus
>

Modified: sandbox/opaque/libs/opaque/test/new_class_test.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class_test.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class_test.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -17,13 +17,13 @@
 
 
 struct private_unsigned :
- boost::new_class<private_unsigned, unsigned
+ boost::opaque::new_class<private_unsigned, unsigned
     , boost::mpl::vector<opaque::using_equality_comparable1<>
>
>
 {
     typedef
- boost::new_class<private_unsigned, unsigned
+ boost::opaque::new_class<private_unsigned, unsigned
     , boost::mpl::vector<opaque::using_equality_comparable1<>
>
>
@@ -40,9 +40,9 @@
     {}
 };
 
-struct private_unsigned2: boost::new_class<private_unsigned2, unsigned>
+struct private_unsigned2: boost::opaque::new_class<private_unsigned2, unsigned>
 {
- typedef boost::new_class<private_unsigned2, unsigned> base_type;
+ typedef boost::opaque::new_class<private_unsigned2, unsigned> base_type;
     
     private_unsigned2(){}
     explicit private_unsigned2(unsigned v) : base_type(v) {}
@@ -70,7 +70,7 @@
 
     unsigned short i;
 
- i=opaque_static_cast<unsigned short>(a);
+ i=opaque::opaque_static_cast<unsigned short>(a);
     //~ i=a; // error
 
     //~ a=i; // error

Modified: sandbox/opaque/libs/opaque/test/new_type_test.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_type_test.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_type_test.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -17,12 +17,12 @@
 
 
 #if 0
-struct private_unsigned : boost::new_class<private_unsigned, unsigned
+struct private_unsigned : boost::opaque::new_class<private_unsigned, unsigned
     , opaque::equality_comparable1<private_unsigned
>
>
 {
- typedef boost::new_class<private_unsigned, unsigned
+ typedef boost::opaque::new_class<private_unsigned, unsigned
     , opaque::equality_comparable1<private_unsigned
>
> base_type;
@@ -37,9 +37,9 @@
         : base_type(r.val_)
     {}
 };
-struct private_unsigned2: boost::new_class<private_unsigned2, unsigned>
+struct private_unsigned2: boost::opaque::new_class<private_unsigned2, unsigned>
 {
- typedef boost::new_class<private_unsigned2, unsigned> base_type;
+ typedef boost::opaque::new_class<private_unsigned2, unsigned> base_type;
     
     private_unsigned2(){}
     explicit private_unsigned2(unsigned v) : base_type(v) {}
@@ -53,9 +53,9 @@
 };
 #else
 struct private_unsigned_tag;
-typedef boost::new_type<unsigned, private_unsigned_tag, boost::mpl::vector<opaque::using_equality_comparable1<> > > private_unsigned;
+typedef boost::opaque::new_type<unsigned, private_unsigned_tag, boost::mpl::vector<opaque::using_equality_comparable1<> > > private_unsigned;
 struct private_unsigned2_tag;
-typedef boost::new_type<unsigned, private_unsigned2_tag> private_unsigned2;
+typedef boost::opaque::new_type<unsigned, private_unsigned2_tag> private_unsigned2;
 
 #endif
 void size_test() {
@@ -73,7 +73,7 @@
 
     unsigned short i;
 
- i=opaque_static_cast<unsigned short>(a);
+ i=opaque::opaque_static_cast<unsigned short>(a);
     //~ i=a; // error
 
     //~ a=i; // error

Modified: sandbox/opaque/libs/opaque/test/private_opaque_explicit_conversion_fail.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/private_opaque_explicit_conversion_fail.cpp (original)
+++ sandbox/opaque/libs/opaque/test/private_opaque_explicit_conversion_fail.cpp 2010-10-07 18:42:01 EDT (Thu, 07 Oct 2010)
@@ -10,11 +10,6 @@
 
 #include <boost/opaque/opaque.hpp>
 
-#include <boost/test/unit_test.hpp>
-
-using namespace boost;
-using namespace boost::unit_test;
-
 
 BOOST_OPAQUE_PRIVATE_TYPEDEF(int,A);
 


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