Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65582 - sandbox/opaque/boost/opaque
From: vicente.botet_at_[hidden]
Date: 2010-09-24 17:16:17


Author: viboes
Date: 2010-09-24 17:16:15 EDT (Fri, 24 Sep 2010)
New Revision: 65582
URL: http://svn.boost.org/trac/boost/changeset/65582

Log:
Opaque: Refactor constructors and assignment as initially done. There is a recursive issue with the simplification
Text files modified:
   sandbox/opaque/boost/opaque/new_type.hpp | 6 +++---
   sandbox/opaque/boost/opaque/opaque.hpp | 2 --
   sandbox/opaque/boost/opaque/private_opaque_type.hpp | 2 +-
   sandbox/opaque/boost/opaque/public_opaque_type.hpp | 2 +-
   4 files changed, 5 insertions(+), 7 deletions(-)

Modified: sandbox/opaque/boost/opaque/new_type.hpp
==============================================================================
--- sandbox/opaque/boost/opaque/new_type.hpp (original)
+++ sandbox/opaque/boost/opaque/new_type.hpp 2010-09-24 17:16:15 EDT (Fri, 24 Sep 2010)
@@ -56,9 +56,9 @@
         explicit new_type(T v) : val_(v) {}
     protected:
         T val_;
- //~ new_type & operator=(const new_type & rhs) {
- //~ val_ = rhs.val_; return *this;
- //~ }
+ new_type & operator=(const new_type & rhs) {
+ val_ = rhs.val_; return *this;
+ }
 
     public:
         T const& underlying() const {

Modified: sandbox/opaque/boost/opaque/opaque.hpp
==============================================================================
--- sandbox/opaque/boost/opaque/opaque.hpp (original)
+++ sandbox/opaque/boost/opaque/opaque.hpp 2010-09-24 17:16:15 EDT (Fri, 24 Sep 2010)
@@ -26,7 +26,6 @@
     BOOST_MPL_ASSERT_MSG(boost::mpl::bool_< (CND) >::type::value, MSG, TYPES)
 
 namespace boost {
-
     template <typename T, typename U>
     T opaque_static_cast(U v)
     {
@@ -71,5 +70,4 @@
     #endif
 }
 
-
 #endif

Modified: sandbox/opaque/boost/opaque/private_opaque_type.hpp
==============================================================================
--- sandbox/opaque/boost/opaque/private_opaque_type.hpp (original)
+++ sandbox/opaque/boost/opaque/private_opaque_type.hpp 2010-09-24 17:16:15 EDT (Fri, 24 Sep 2010)
@@ -38,7 +38,7 @@
 
         private_opaque_type() {};
         private_opaque_type(const opaque_type_t & rhs) : base_type(rhs.val_) {}
- //~ private_opaque_type(const Final & rhs) : base_type(rhs.val_) {}
+ private_opaque_type(const Final & rhs) : base_type(rhs.val_) {}
         explicit private_opaque_type(T v) : base_type(v) {};
         template <typename W>
         explicit private_opaque_type(W v)

Modified: sandbox/opaque/boost/opaque/public_opaque_type.hpp
==============================================================================
--- sandbox/opaque/boost/opaque/public_opaque_type.hpp (original)
+++ sandbox/opaque/boost/opaque/public_opaque_type.hpp 2010-09-24 17:16:15 EDT (Fri, 24 Sep 2010)
@@ -156,7 +156,7 @@
 
         public_opaque_type() {}
         public_opaque_type(const opaque_type_t & rhs) : base_type(rhs.val_){}
- //~ public_opaque_type(const Final & rhs) : base_type(rhs.val_){}
+ public_opaque_type(const Final & rhs) : base_type(rhs.val_){}
         explicit public_opaque_type(T v) : base_type(v) {}
 
         template <typename W>


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