Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70572 - branches/pplib/variadics/boost/preprocessor/array
From: eldiener_at_[hidden]
Date: 2011-03-26 13:03:20


Author: eldiener
Date: 2011-03-26 13:03:19 EDT (Sat, 26 Mar 2011)
New Revision: 70572
URL: http://svn.boost.org/trac/boost/changeset/70572

Log:
Updated array.
Text files modified:
   branches/pplib/variadics/boost/preprocessor/array/enum.hpp | 3 ++-
   branches/pplib/variadics/boost/preprocessor/array/to_list.hpp | 5 +++++
   branches/pplib/variadics/boost/preprocessor/array/to_seq.hpp | 4 +++-
   branches/pplib/variadics/boost/preprocessor/array/to_tuple.hpp | 2 +-
   4 files changed, 11 insertions(+), 3 deletions(-)

Modified: branches/pplib/variadics/boost/preprocessor/array/enum.hpp
==============================================================================
--- branches/pplib/variadics/boost/preprocessor/array/enum.hpp (original)
+++ branches/pplib/variadics/boost/preprocessor/array/enum.hpp 2011-03-26 13:03:19 EDT (Sat, 26 Mar 2011)
@@ -13,9 +13,10 @@
 # define BOOST_PREPROCESSOR_ARRAY_ENUM_HPP
 #
 #include <boost/preprocessor/tuple/enum.hpp>
+#include <boost/preprocessor/array/size.hpp>
 #include <boost/preprocessor/array/data.hpp>
 #
 #define BOOST_PP_ARRAY_ENUM(array) \
- BOOST_PP_TUPLE_ENUM(BOOST_PP_ARRAY_DATA(array)) \
+ BOOST_PP_TUPLE_ENUM(BOOST_PP_ARRAY_SIZE(array),BOOST_PP_ARRAY_DATA(array)) \
 /**/
 # endif // BOOST_PREPROCESSOR_ARRAY_ENUM_HPP

Modified: branches/pplib/variadics/boost/preprocessor/array/to_list.hpp
==============================================================================
--- branches/pplib/variadics/boost/preprocessor/array/to_list.hpp (original)
+++ branches/pplib/variadics/boost/preprocessor/array/to_list.hpp 2011-03-26 13:03:19 EDT (Sat, 26 Mar 2011)
@@ -12,6 +12,11 @@
 # ifndef BOOST_PREPROCESSOR_ARRAY_TO_LIST_HPP
 # define BOOST_PREPROCESSOR_ARRAY_TO_LIST_HPP
 #
+#include <boost/preprocessor/tuple/to_list.hpp>
+#include <boost/preprocessor/array/size.hpp>
+#include <boost/preprocessor/array/data.hpp>
+#
 #define BOOST_PP_ARRAY_TO_LIST(array) \
+ BOOST_PP_TUPLE_TO_LIST(BOOST_PP_ARRAY_SIZE(array),BOOST_PP_ARRAY_DATA(array)) \
 /**/
 # endif // BOOST_PREPROCESSOR_ARRAY_TO_LIST_HPP

Modified: branches/pplib/variadics/boost/preprocessor/array/to_seq.hpp
==============================================================================
--- branches/pplib/variadics/boost/preprocessor/array/to_seq.hpp (original)
+++ branches/pplib/variadics/boost/preprocessor/array/to_seq.hpp 2011-03-26 13:03:19 EDT (Sat, 26 Mar 2011)
@@ -12,9 +12,11 @@
 # ifndef BOOST_PREPROCESSOR_ARRAY_TO_SEQ_HPP
 # define BOOST_PREPROCESSOR_ARRAY_TO_SEQ_HPP
 #
-#include <boost/preprocessor/tuple/enum.hpp>
+#include <boost/preprocessor/tuple/to_seq.hpp>
+#include <boost/preprocessor/array/size.hpp>
 #include <boost/preprocessor/array/data.hpp>
 #
 #define BOOST_PP_ARRAY_TO_SEQ(array) \
+ BOOST_PP_TUPLE_TO_SEQ(BOOST_PP_ARRAY_SIZE(array),BOOST_PP_ARRAY_DATA(array)) \
 /**/
 # endif // BOOST_PREPROCESSOR_ARRAY_TO_SEQ_HPP

Modified: branches/pplib/variadics/boost/preprocessor/array/to_tuple.hpp
==============================================================================
--- branches/pplib/variadics/boost/preprocessor/array/to_tuple.hpp (original)
+++ branches/pplib/variadics/boost/preprocessor/array/to_tuple.hpp 2011-03-26 13:03:19 EDT (Sat, 26 Mar 2011)
@@ -12,9 +12,9 @@
 # ifndef BOOST_PREPROCESSOR_ARRAY_TO_TUPLE_HPP
 # define BOOST_PREPROCESSOR_ARRAY_TO_TUPLE_HPP
 #
-#include <boost/preprocessor/tuple/enum.hpp>
 #include <boost/preprocessor/array/data.hpp>
 #
 #define BOOST_PP_ARRAY_TO_TUPLE(array) \
+ BOOST_PP_ARRAY_DATA(array) \
 /**/
 # endif // BOOST_PREPROCESSOR_ARRAY_TO_TUPLE_HPP


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