Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67269 - in sandbox/opaque/libs/opaque/test: . new_class
From: vicente.botet_at_[hidden]
Date: 2010-12-16 02:04:50


Author: viboes
Date: 2010-12-16 02:04:44 EST (Thu, 16 Dec 2010)
New Revision: 67269
URL: http://svn.boost.org/trac/boost/changeset/67269

Log:
Opaque: first draft
Text files modified:
   sandbox/opaque/libs/opaque/test/new_class/regular_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/using_divide_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/using_equal_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/using_greater_than_equal_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/using_greater_than_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/using_less_than_equal_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/using_less_than_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/using_minus_assign_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/using_multiply_assign_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/using_multiply_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/using_not_equal_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/using_plus_assign_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_class/using_plus_pass.cpp | 2 +-
   sandbox/opaque/libs/opaque/test/new_type_test.cpp | 38 +-------------------------------------
   14 files changed, 14 insertions(+), 50 deletions(-)

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -18,7 +18,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,())
 struct NT :
     boost::opaque::new_class<NT, UT>
 {

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -19,7 +19,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,(opaque::using_divide))
 struct NT :
     boost::opaque::new_class<NT, UT
     , boost::mpl::vector<

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -19,7 +19,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,(opaque::using_equal<>))
 struct NT :
     boost::opaque::new_class<NT, UT
     , boost::mpl::vector<

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -19,7 +19,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,(opaque::using_greater_than_equal<>))
 struct NT :
     boost::opaque::new_class<NT, UT
     , boost::mpl::vector<

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -19,7 +19,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,(opaque::using_greater_than<>))
 struct NT :
     boost::opaque::new_class<NT, UT
     , boost::mpl::vector<

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -19,7 +19,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,(opaque::using_less_than_equal<>))
 struct NT :
     boost::opaque::new_class<NT, UT
     , boost::mpl::vector<

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -19,7 +19,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,((opaque::using_less_than<>)))
 struct NT :
     boost::opaque::new_class<NT, UT
     , boost::mpl::vector<

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -19,7 +19,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,(opaque::using_minus_assign))
 struct NT :
     boost::opaque::new_class<NT, UT
     , boost::mpl::vector<

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -19,7 +19,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,(opaque::using_multiply_assign))
 struct NT :
     boost::opaque::new_class<NT, UT
     , boost::mpl::vector<

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -19,7 +19,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,(opaque::using_multiply))
 struct NT :
     boost::opaque::new_class<NT, UT
     , boost::mpl::vector<

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -19,7 +19,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,(opaque::using_not_equal<>))
 struct NT :
     boost::opaque::new_class<NT, UT
     , boost::mpl::vector<

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -19,7 +19,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,(opaque::using_plus_assign))
 struct NT :
     boost::opaque::new_class<NT, UT
     , boost::mpl::vector<

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -19,7 +19,7 @@
 typedef int UT;
 typedef short UT2;
 
-// NEW_CLASS(NT,UT,((opaque::using_equality_comparable1<>)))
+// NEW_CLASS(NT,UT,(opaque::using_plus))
 struct NT :
     boost::opaque::new_class<NT, UT
     , boost::mpl::vector<

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-12-16 02:04:44 EST (Thu, 16 Dec 2010)
@@ -16,48 +16,12 @@
 using namespace boost::unit_test;
 
 
-#if 0
-struct private_unsigned : boost::opaque::new_class<private_unsigned, unsigned
- , opaque::equality_comparable1<private_unsigned
- >
- >
-{
- typedef boost::opaque::new_class<private_unsigned, unsigned
- , opaque::equality_comparable1<private_unsigned
- >
- > base_type;
-
- private_unsigned(){}
- explicit private_unsigned(unsigned v) : base_type(v) {}
- template <typename W>
- explicit private_unsigned(W w)
- : base_type(w)
- {}
- private_unsigned(private_unsigned const& r)
- : base_type(r.val_)
- {}
-};
-struct private_unsigned2: boost::opaque::new_class<private_unsigned2, unsigned>
-{
- typedef boost::opaque::new_class<private_unsigned2, unsigned> base_type;
-
- private_unsigned2(){}
- explicit private_unsigned2(unsigned v) : base_type(v) {}
- template <typename W>
- explicit private_unsigned2(W w)
- : base_type(w)
- {}
- private_unsigned2(private_unsigned2 const& r)
- : base_type(r.val_)
- {}
-};
-#else
 struct private_unsigned_tag;
 typedef boost::opaque::new_type<unsigned, private_unsigned_tag, boost::mpl::vector<opaque::using_equality_comparable1<> > > private_unsigned;
 struct private_unsigned2_tag;
 typedef boost::opaque::new_type<unsigned, private_unsigned2_tag> private_unsigned2;
 
-#endif
+
 void size_test() {
 
     BOOST_CHECK(sizeof(private_unsigned)==sizeof(unsigned));


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