Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73961 - sandbox/enums/boost/enums/ordinal
From: vicente.botet_at_[hidden]
Date: 2011-08-20 17:43:26


Author: viboes
Date: 2011-08-20 17:43:26 EDT (Sat, 20 Aug 2011)
New Revision: 73961
URL: http://svn.boost.org/trac/boost/changeset/73961

Log:
Enums: Use scoped enum directly when available in templates
Text files modified:
   sandbox/enums/boost/enums/ordinal/pos.hpp | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: sandbox/enums/boost/enums/ordinal/pos.hpp
==============================================================================
--- sandbox/enums/boost/enums/ordinal/pos.hpp (original)
+++ sandbox/enums/boost/enums/ordinal/pos.hpp 2011-08-20 17:43:26 EDT (Sat, 20 Aug 2011)
@@ -36,7 +36,12 @@
       //! its relative position.
         
       //! @Note This meta-function must be specialized for each element of the enumeration.
+#ifdef BOOST_NO_SCOPED_ENUMS
       template <typename EC, typename native_type<EC>::type V>
+#else
+ template <typename EC, EC V>
+#endif
+
 #ifndef BOOST_ENUMS_DOXYGEN_INVOKED
         struct pos;
 #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