Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70210 - sandbox/enums/libs/enums/test/enum_class
From: vicente.botet_at_[hidden]
Date: 2011-03-19 15:58:39


Author: viboes
Date: 2011-03-19 15:58:38 EDT (Sat, 19 Mar 2011)
New Revision: 70210
URL: http://svn.boost.org/trac/boost/changeset/70210

Log:
Enums: Addednamespace aware macros tests
Text files modified:
   sandbox/enums/libs/enums/test/enum_class/enum_inside_union_cons.fail.cpp | 12 ++++++++++++
   sandbox/enums/libs/enums/test/enum_class/enum_inside_union_cons.pass.cpp | 13 +++++++++++++
   2 files changed, 25 insertions(+), 0 deletions(-)

Modified: sandbox/enums/libs/enums/test/enum_class/enum_inside_union_cons.fail.cpp
==============================================================================
--- sandbox/enums/libs/enums/test/enum_class/enum_inside_union_cons.fail.cpp (original)
+++ sandbox/enums/libs/enums/test/enum_class/enum_inside_union_cons.fail.cpp 2011-03-19 15:58:38 EDT (Sat, 19 Mar 2011)
@@ -12,6 +12,8 @@
 
 #include <boost/enums/scoped.hpp>
 
+#if 0
+
 namespace Ex {
   BOOST_ENUM_CLASS_START(EC_Cons, int) {
     E0 = 3,
@@ -21,6 +23,16 @@
 }
 BOOST_ENUMS_SPECIALIZATIONS(Ex::EC_Cons, int)
 
+#else
+
+BOOST_ENUM_NS_CLASS_START((Ex)(EC_Cons), int) {
+ E0 = 3,
+ E1,
+ E2
+} BOOST_ENUM_NS_CLASS_CONS_END((Ex)(EC_Cons), int)
+
+#endif
+
 #if !defined(BOOST_NO_ENUM_UNRESTRICTED_UNION)
 #error "force error as not applicable as unrestricted union available"
 #else

Modified: sandbox/enums/libs/enums/test/enum_class/enum_inside_union_cons.pass.cpp
==============================================================================
--- sandbox/enums/libs/enums/test/enum_class/enum_inside_union_cons.pass.cpp (original)
+++ sandbox/enums/libs/enums/test/enum_class/enum_inside_union_cons.pass.cpp 2011-03-19 15:58:38 EDT (Sat, 19 Mar 2011)
@@ -12,6 +12,8 @@
 
 #include <boost/enums/scoped.hpp>
 
+#if 0
+
 namespace Ex {
   BOOST_ENUM_CLASS_START(EC_Cons, int) {
     E0 = 3,
@@ -21,6 +23,17 @@
 }
 BOOST_ENUMS_SPECIALIZATIONS(Ex::EC_Cons, int)
 
+#else
+
+BOOST_ENUM_NS_CLASS_START((Ex)(EC_Cons), int) {
+ E0 = 3,
+ E1,
+ E2
+}
+BOOST_ENUM_NS_CLASS_CONS_END( (Ex)(EC_Cons), int)
+
+#endif
+
 #if defined(BOOST_NO_ENUM_UNRESTRICTED_UNION)
 //#warning "not applicable as unrestricted union not available"
 #else


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