mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-29 12:07:36 +02:00
updated make_vector to return numered forms instead
[SVN r49768]
This commit is contained in:
@ -32,14 +32,14 @@ namespace boost { namespace fusion
|
||||
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 @@ namespace boost { namespace fusion
|
||||
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, _));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user