Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69348 - sandbox/enums/libs/enums/test
From: vicente.botet_at_[hidden]
Date: 2011-02-27 15:56:05


Author: viboes
Date: 2011-02-27 15:56:02 EST (Sun, 27 Feb 2011)
New Revision: 69348
URL: http://svn.boost.org/trac/boost/changeset/69348

Log:
Enums: Remove ENUM_VALUE use
Text files modified:
   sandbox/enums/libs/enums/test/EnumClass.hpp | 7 +++----
   1 files changed, 3 insertions(+), 4 deletions(-)

Modified: sandbox/enums/libs/enums/test/EnumClass.hpp
==============================================================================
--- sandbox/enums/libs/enums/test/EnumClass.hpp (original)
+++ sandbox/enums/libs/enums/test/EnumClass.hpp 2011-02-27 15:56:02 EST (Sun, 27 Feb 2011)
@@ -15,7 +15,6 @@
 
 
 #include <boost/enums/underlying_type.hpp>
-#include <boost/enums/enum_value.hpp>
 #include <boost/enums/enum_type.hpp>
 #include <boost/enums/default_value.hpp>
 #include <boost/enums/get_value.hpp>
@@ -197,9 +196,9 @@
 {
     switch (boost::enums::get_value(e))
     {
- case BOOST_ENUM_VALUE(EnumClass::Default) : return("EnumClass::Default");
- case BOOST_ENUM_VALUE(EnumClass::Enum1): return("EnumClass::Enum1");
- case BOOST_ENUM_VALUE(EnumClass::Enum2) : return("EnumClass::Enum2");
+ case EnumClass::Default : return("EnumClass::Default");
+ case EnumClass::Enum1: return("EnumClass::Enum1");
+ case EnumClass::Enum2 : return("EnumClass::Enum2");
     default:
       return("EnumClass::???");
     }


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