|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49768 - trunk/boost/fusion/container/generation
From: joel_at_[hidden]
Date: 2008-11-15 06:08:50
Author: djowel
Date: 2008-11-15 06:08:49 EST (Sat, 15 Nov 2008)
New Revision: 49768
URL: http://svn.boost.org/trac/boost/changeset/49768
Log:
updated make_vector to return numered forms instead
Text files modified:
trunk/boost/fusion/container/generation/make_vector.hpp | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
Modified: trunk/boost/fusion/container/generation/make_vector.hpp
==============================================================================
--- trunk/boost/fusion/container/generation/make_vector.hpp (original)
+++ trunk/boost/fusion/container/generation/make_vector.hpp 2008-11-15 06:08:49 EST (Sat, 15 Nov 2008)
@@ -1,7 +1,7 @@
/*=============================================================================
Copyright (c) 2001-2006 Joel de Guzman
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
#ifndef BOOST_PP_IS_ITERATING
@@ -19,7 +19,7 @@
namespace boost { namespace fusion
{
struct void_;
-
+
namespace result_of
{
template <
@@ -28,18 +28,18 @@
, typename Extra = void_
>
struct make_vector;
-
+
template <>
struct make_vector<>
{
- typedef vector<> type;
+ typedef vector0 type;
};
}
-
+
inline vector<>
make_vector()
{
- return vector<>();
+ return vector0();
}
#define BOOST_FUSION_AS_FUSION_ELEMENT(z, n, data) \
@@ -74,15 +74,15 @@
struct make_vector<BOOST_PP_ENUM_PARAMS(N, T)>
#endif
{
- typedef vector<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)> type;
+ typedef BOOST_PP_CAT(vector, N)<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)> type;
};
}
template <BOOST_PP_ENUM_PARAMS(N, typename T)>
- inline vector<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>
+ inline BOOST_PP_CAT(vector, N)<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>
make_vector(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& _))
{
- return vector<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>(
+ return BOOST_PP_CAT(vector, N)<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>(
BOOST_PP_ENUM_PARAMS(N, _));
}
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