Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69484 - sandbox/enums/boost/enums
From: vicente.botet_at_[hidden]
Date: 2011-03-02 12:05:29


Author: viboes
Date: 2011-03-02 12:05:28 EST (Wed, 02 Mar 2011)
New Revision: 69484
URL: http://svn.boost.org/trac/boost/changeset/69484

Log:
Enums: Added pointer and cons_pointer nested types
Text files modified:
   sandbox/enums/boost/enums/enum_array.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: sandbox/enums/boost/enums/enum_array.hpp
==============================================================================
--- sandbox/enums/boost/enums/enum_array.hpp (original)
+++ sandbox/enums/boost/enums/enum_array.hpp 2011-03-02 12:05:28 EST (Wed, 02 Mar 2011)
@@ -36,7 +36,7 @@
 
 #include <boost/enums/size.hpp>
 #include <boost/enums/pos.hpp>
-#include <boost/tuple.hpp>
+//#include <boost/tuples.hpp>
 #include <boost/type_traits/integral_constant.hpp>
 
 // FIXES for broken compilers
@@ -58,10 +58,12 @@
         typedef const T* const_iterator;
         typedef T& reference;
         typedef const T& const_reference;
+ typedef value_type* pointer;
+ typedef const value_type* const_pointer;
         typedef EC key_type;
         typedef std::size_t size_type;
         typedef std::ptrdiff_t difference_type;
- static const std::size_t N = enums::meta::size<EC>::value;
+ static const std::size_t N = enums::meta::size<EC>::value;
 
         // iterator support
         iterator begin() { return elems; }


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