Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65781 - sandbox/opaque/boost/opaque/meta_mixin
From: vicente.botet_at_[hidden]
Date: 2010-10-06 07:28:54


Author: viboes
Date: 2010-10-06 07:28:49 EDT (Wed, 06 Oct 2010)
New Revision: 65781
URL: http://svn.boost.org/trac/boost/changeset/65781

Log:
Opaque:
* Fix hiding issue

Text files modified:
   sandbox/opaque/boost/opaque/meta_mixin/operators.hpp | 11 +++++++++--
   1 files changed, 9 insertions(+), 2 deletions(-)

Modified: sandbox/opaque/boost/opaque/meta_mixin/operators.hpp
==============================================================================
--- sandbox/opaque/boost/opaque/meta_mixin/operators.hpp (original)
+++ sandbox/opaque/boost/opaque/meta_mixin/operators.hpp 2010-10-06 07:28:49 EDT (Wed, 06 Oct 2010)
@@ -614,9 +614,15 @@
 #else
 #define BOOST_OPAQUE_USING_PLUS(Final) \
     public :\
+ Final using_plus_op(const Final& rhs) const { \
+ return Final(Final::underlying(this) + rhs.underlying()); \
+ } \
         friend Final operator+(const Final& lhs, const Final& rhs) { \
- return Final(lhs.underlying() + rhs.underlying()); \
+ return lhs.using_plus_op(rhs); \
         }
+
+ //return Final(lhs.underlying() + rhs.underlying());
+
 #define BOOST_OPAQUE_USING_MINUS(Final) \
     public :\
         friend Final operator-(const Final& lhs, const Final& rhs) { \
@@ -639,7 +645,8 @@
         struct type: Base {
         private :
                 //friend Final operator+(const Final& lhs, const Final& rhs);
- Final operator+(const Final& rhs) const;
+ Final using_plus_op(const Final& rhs) const;
+ //Final operator+(const Final& rhs) const;
         };
     };
 


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