Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72261 - in sandbox/enums/boost/enums: pp scoped
From: vicente.botet_at_[hidden]
Date: 2011-05-29 04:29:57


Author: viboes
Date: 2011-05-29 04:29:55 EDT (Sun, 29 May 2011)
New Revision: 72261
URL: http://svn.boost.org/trac/boost/changeset/72261

Log:
Enums: moved dummy to conversion namespace
Text files modified:
   sandbox/enums/boost/enums/pp/enum_declaration.hpp | 4 ++--
   sandbox/enums/boost/enums/scoped/emulation.hpp | 14 +++++++-------
   sandbox/enums/boost/enums/scoped/enum_class_cons.hpp | 4 ++--
   sandbox/enums/boost/enums/scoped/enum_class_no_cons.hpp | 8 ++++----
   sandbox/enums/boost/enums/scoped/enum_type_cons.hpp | 4 ++--
   sandbox/enums/boost/enums/scoped/enum_type_no_cons.hpp | 8 ++++----
   6 files changed, 21 insertions(+), 21 deletions(-)

Modified: sandbox/enums/boost/enums/pp/enum_declaration.hpp
==============================================================================
--- sandbox/enums/boost/enums/pp/enum_declaration.hpp (original)
+++ sandbox/enums/boost/enums/pp/enum_declaration.hpp 2011-05-29 04:29:55 EDT (Sun, 29 May 2011)
@@ -48,7 +48,7 @@
   inline \
   ENUM convert_to( \
       const char* str, \
- boost::dummy::type_tag<ENUM> const& \
+ boost::conversion::dummy::type_tag<ENUM> const& \
     ) \
   { \
     BOOST_PP_SEQ_FOR_EACH( \
@@ -63,7 +63,7 @@
   inline \
   ENUM convert_to( \
     const std::string& str, \
- boost::dummy::type_tag<ENUM> const& \
+ boost::conversion::dummy::type_tag<ENUM> const& \
   ) \
   { \
     return boost::conversion::convert_to<ENUM>( \

Modified: sandbox/enums/boost/enums/scoped/emulation.hpp
==============================================================================
--- sandbox/enums/boost/enums/scoped/emulation.hpp (original)
+++ sandbox/enums/boost/enums/scoped/emulation.hpp 2011-05-29 04:29:55 EDT (Sun, 29 May 2011)
@@ -116,19 +116,19 @@
 
   #define BOOST_ENUMS_DETAIL_FRIEND_CONVERSIONS(EC, UT) \
     inline EC convert_to(UT v \
- , boost::dummy::type_tag<EC> const& \
+ , boost::conversion::dummy::type_tag<EC> const& \
     ) \
     { \
       return EC(v); \
     } \
     inline EC convert_to(boost::enums::native_type<EC>::type v \
- , boost::dummy::type_tag<EC> const& \
+ , boost::conversion::dummy::type_tag<EC> const& \
     ) \
     { \
       return v; \
     } \
     inline UT convert_to(EC v \
- , boost::dummy::type_tag<UT> const& \
+ , boost::conversion::dummy::type_tag<UT> const& \
     ) \
     { \
       return boost::enums::underlying_value(v); \
@@ -156,25 +156,25 @@
 
 #define BOOST_ENUMS_DETAIL_FRIEND_CONVERSIONS(EC, UT) \
   inline EC convert_to(UT v \
- , boost::dummy::type_tag<EC> const& \
+ , boost::conversion::dummy::type_tag<EC> const& \
   ) \
   { \
     return EC::convert_to(v); \
   } \
   inline EC convert_to(boost::enums::native_type<EC>::type v \
- , boost::dummy::type_tag<EC> const& \
+ , boost::conversion::dummy::type_tag<EC> const& \
   ) \
   { \
     return EC::convert_to(v); \
   } \
   inline UT convert_to(EC v \
- , boost::dummy::type_tag<UT> const& \
+ , boost::conversion::dummy::type_tag<UT> const& \
   ) \
   { \
     return boost::enums::underlying_value(v); \
   } \
   inline boost::enums::native_type<EC>::type convert_to(EC v \
- , boost::dummy::type_tag<boost::enums::native_type<EC>::type> const& \
+ , boost::conversion::dummy::type_tag<boost::enums::native_type<EC>::type> const& \
   ) \
   { \
     return boost::enums::native_value(v); \

Modified: sandbox/enums/boost/enums/scoped/enum_class_cons.hpp
==============================================================================
--- sandbox/enums/boost/enums/scoped/enum_class_cons.hpp (original)
+++ sandbox/enums/boost/enums/scoped/enum_class_cons.hpp 2011-05-29 04:29:55 EDT (Sun, 29 May 2011)
@@ -240,7 +240,7 @@
 
       //! @Returns <tt>boost::enums::underlying_value(v)</tt>.
       friend underlying_type convert_to(enum_class_cons v,
- boost::dummy::type_tag<underlying_type> const&)
+ boost::conversion::dummy::type_tag<underlying_type> const&)
       {
         return boost::enums::underlying_value(v);
       }
@@ -249,7 +249,7 @@
 
       //! @Returns <tt>boost::enums::native_value(v)</tt>.
       friend type convert_to(enum_class_cons v,
- boost::dummy::type_tag<type> const&)
+ boost::conversion::dummy::type_tag<type> const&)
       {
         return boost::enums::native_value(v);
       }

Modified: sandbox/enums/boost/enums/scoped/enum_class_no_cons.hpp
==============================================================================
--- sandbox/enums/boost/enums/scoped/enum_class_no_cons.hpp (original)
+++ sandbox/enums/boost/enums/scoped/enum_class_no_cons.hpp 2011-05-29 04:29:55 EDT (Sun, 29 May 2011)
@@ -188,7 +188,7 @@
       
       //! conversions from underlying_type to enum_class_no_cons following the Boost.Conversion protocol
       friend enum_class_no_cons convert_to(underlying_type v,
- boost::dummy::type_tag<enum_class_no_cons> const&)
+ boost::conversion::dummy::type_tag<enum_class_no_cons> const&)
       {
         enum_class_no_cons res;
         res.val_=v;
@@ -197,7 +197,7 @@
       
       //! friend conversions from type to enum_class_no_cons following the Boost.Conversion protocol
       friend enum_class_no_cons convert_to(type v,
- boost::dummy::type_tag<enum_class_no_cons> const&)
+ boost::conversion::dummy::type_tag<enum_class_no_cons> const&)
       {
         enum_class_no_cons res;
         res.val_=static_cast<underlying_type>(v);
@@ -206,14 +206,14 @@
       
       //! conversions from enum_class_no_cons to underlying_type following the Boost.Conversion protocol
       friend underlying_type convert_to(enum_class_no_cons v,
- boost::dummy::type_tag<underlying_type> const&)
+ boost::conversion::dummy::type_tag<underlying_type> const&)
       {
         return boost::enums::underlying_value(v);
       }
       
       //! conversions from enum_class_no_cons to type following the Boost.Conversion protocol
       friend type convert_to(enum_class_no_cons v,
- boost::dummy::type_tag<type> const&)
+ boost::conversion::dummy::type_tag<type> const&)
       {
         return boost::enums::native_value(v);
       }

Modified: sandbox/enums/boost/enums/scoped/enum_type_cons.hpp
==============================================================================
--- sandbox/enums/boost/enums/scoped/enum_type_cons.hpp (original)
+++ sandbox/enums/boost/enums/scoped/enum_type_cons.hpp 2011-05-29 04:29:55 EDT (Sun, 29 May 2011)
@@ -121,13 +121,13 @@
 
         //! conversions from enum_type_cons to underlying_type following the Boost.Conversion protocol
       friend underlying_type convert_to(enum_type_cons v,
- boost::dummy::type_tag<underlying_type> const&)
+ boost::conversion::dummy::type_tag<underlying_type> const&)
       {
         return boost::enums::underlying_value(v);
       }
       //! conversions from enum_type_cons to type following the Boost.Conversion protocol
       friend type convert_to(enum_type_cons v,
- boost::dummy::type_tag<type> const&)
+ boost::conversion::dummy::type_tag<type> const&)
       {
         return boost::enums::native_value(v);
       }

Modified: sandbox/enums/boost/enums/scoped/enum_type_no_cons.hpp
==============================================================================
--- sandbox/enums/boost/enums/scoped/enum_type_no_cons.hpp (original)
+++ sandbox/enums/boost/enums/scoped/enum_type_no_cons.hpp 2011-05-29 04:29:55 EDT (Sun, 29 May 2011)
@@ -103,7 +103,7 @@
       
       //! conversions from underlying_type to enum_type_cons following the Boost.Conversion protocol
       friend enum_type_no_cons convert_to(underlying_type v,
- boost::dummy::type_tag<enum_type_no_cons> const&)
+ boost::conversion::dummy::type_tag<enum_type_no_cons> const&)
       {
         enum_type_no_cons res;
         res.val_=v;
@@ -112,7 +112,7 @@
       
       //! friend conversions from type to enum_type_cons following the Boost.Conversion protocol
       friend enum_type_no_cons convert_to(type v,
- boost::dummy::type_tag<enum_type_no_cons> const&)
+ boost::conversion::dummy::type_tag<enum_type_no_cons> const&)
       {
         enum_type_no_cons res;
         res.val_=static_cast<underlying_type>(v);
@@ -121,14 +121,14 @@
       
       //! conversions from enum_type_cons to underlying_type following the Boost.Conversion protocol
       friend underlying_type convert_to(enum_type_no_cons v,
- boost::dummy::type_tag<underlying_type> const&)
+ boost::conversion::dummy::type_tag<underlying_type> const&)
       {
         return boost::enums::underlying_value(v);
       }
       
       //! conversions from enum_type_cons to type following the Boost.Conversion protocol
       friend type convert_to(enum_type_no_cons v,
- boost::dummy::type_tag<type> const&)
+ boost::conversion::dummy::type_tag<type> const&)
       {
         return boost::enums::native_value(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