|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72248 - branches/pplib/v2/boost/preprocessor/list
From: eldiener_at_[hidden]
Date: 2011-05-28 11:11:59
Author: eldiener
Date: 2011-05-28 11:11:58 EDT (Sat, 28 May 2011)
New Revision: 72248
URL: http://svn.boost.org/trac/boost/changeset/72248
Log:
Variadic version doe not need list size.
Text files modified:
branches/pplib/v2/boost/preprocessor/list/to_array.hpp | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
Modified: branches/pplib/v2/boost/preprocessor/list/to_array.hpp
==============================================================================
--- branches/pplib/v2/boost/preprocessor/list/to_array.hpp (original)
+++ branches/pplib/v2/boost/preprocessor/list/to_array.hpp 2011-05-28 11:11:58 EDT (Sat, 28 May 2011)
@@ -18,7 +18,14 @@
#
# /* BOOST_PP_LIST_TO_ARRAY */
#
-#define BOOST_PP_LIST_TO_ARRAY(list) \
+# if BOOST_PP_VARIADICS
+# define BOOST_PP_LIST_TO_ARRAY(list) \
+ BOOST_PP_TUPLE_TO_ARRAY(BOOST_PP_LIST_TO_TUPLE(list)) \
+/**/
+# else
+# define BOOST_PP_LIST_TO_ARRAY(list) \
BOOST_PP_TUPLE_TO_ARRAY(BOOST_PP_LIST_SIZE(list),BOOST_PP_LIST_TO_TUPLE(list)) \
/**/
+# endif
+#
# endif /* BOOST_PREPROCESSOR_LIST_TO_ARRAY_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