Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70033 - sandbox/enums/boost/enums
From: vicente.botet_at_[hidden]
Date: 2011-03-16 19:11:17


Author: viboes
Date: 2011-03-16 19:11:12 EDT (Wed, 16 Mar 2011)
New Revision: 70033
URL: http://svn.boost.org/trac/boost/changeset/70033

Log:
Enums: Fix issue with oprators for enum type
Text files modified:
   sandbox/enums/boost/enums/enum_type_no_cons.hpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: sandbox/enums/boost/enums/enum_type_no_cons.hpp
==============================================================================
--- sandbox/enums/boost/enums/enum_type_no_cons.hpp (original)
+++ sandbox/enums/boost/enums/enum_type_no_cons.hpp 2011-03-16 19:11:12 EDT (Wed, 16 Mar 2011)
@@ -41,11 +41,14 @@
     private:
       underlying_type val_;
     public:
+
+#if 0
       //! implicit conversion to underlying_type
       operator underlying_type()
       {
         return val_;
       }
+#endif
       
       //! implicit conversion to enum type
       operator type()
@@ -99,6 +102,8 @@
       {
         return val_;
       }
+#if 0
+
       //! equal operator
       friend bool operator==(enum_type_no_cons lhs, enum_type_no_cons rhs)
       {
@@ -189,6 +194,7 @@
       {
         return lhs.val_ > rhs;
       }
+#endif
       
       //! conversions from underlying_type to enum_type_cons following the Boost.Conversion protocol
       friend enum_type_no_cons convert_to(underlying_type v,


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