diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-09-13 11:05:34 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-09-13 11:06:28 +0900 |
commit | 34bd32e225e2a8a94104489b31c42e5801cc1f4a (patch) | |
tree | d021b579a0c190354819974e1eaf0baa54b551f3 /boost/phoenix/support/vector.hpp | |
parent | f763a99a501650eff2c60288aa6f10ef916d769e (diff) | |
download | boost-34bd32e225e2a8a94104489b31c42e5801cc1f4a.tar.gz boost-34bd32e225e2a8a94104489b31c42e5801cc1f4a.tar.bz2 boost-34bd32e225e2a8a94104489b31c42e5801cc1f4a.zip |
Imported Upstream version 1.63.0upstream/1.63.0
Change-Id: Iac85556a04b7e58d63ba636dedb0986e3555714a
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/phoenix/support/vector.hpp')
-rw-r--r-- | boost/phoenix/support/vector.hpp | 22 |
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 \ |