summaryrefslogtreecommitdiff
path: root/boost/phoenix/support/vector.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/phoenix/support/vector.hpp')
-rw-r--r--boost/phoenix/support/vector.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/boost/phoenix/support/vector.hpp b/boost/phoenix/support/vector.hpp
index 6899d85527..055ebe2be9 100644
--- a/boost/phoenix/support/vector.hpp
+++ b/boost/phoenix/support/vector.hpp
@@ -70,6 +70,18 @@ namespace boost { namespace phoenix
typedef mpl::int_<0> size_type;
static const int size_value = 0;
};
+
+ template <int> struct vector_chooser;
+
+ template <>
+ struct vector_chooser<0>
+ {
+ template <typename Dummy = void>
+ struct apply
+ {
+ typedef vector0<> type;
+ };
+ };
}}
@@ -111,6 +123,16 @@ namespace boost { namespace phoenix
return r;
}
};
+
+ template <>
+ struct vector_chooser<BOOST_PHOENIX_ITERATION>
+ {
+ template <BOOST_PHOENIX_typename_A>
+ struct apply
+ {
+ typedef BOOST_PP_CAT(vector, BOOST_PHOENIX_ITERATION)<BOOST_PHOENIX_A> type;
+ };
+ };
}}
#define BOOST_PHOENIX_SUPPORT_VECTOR_ADAT_PARAM0 \