X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=boost%2Fvariant%2Fdetail%2Fsubstitute.hpp;h=56faa89cfd779176520779418fb49cdf29a43ee0;hb=08c1e93fa36a49f49325a07fe91ff92c964c2b6c;hp=97fe2054bcf27df12b79be50f06dedc2f312cb22;hpb=bb4dd8289b351fae6b55e303f189127a394a1edd;p=platform%2Fupstream%2Fboost.git diff --git a/boost/variant/detail/substitute.hpp b/boost/variant/detail/substitute.hpp index 97fe205..56faa89 100644 --- a/boost/variant/detail/substitute.hpp +++ b/boost/variant/detail/substitute.hpp @@ -125,6 +125,27 @@ struct substitute< // template expression (i.e., F<...>) specializations // +#if !defined(BOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES) +template < + template class F + , typename... Ts + , typename Dest + , typename Source + BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(typename Arity) + > +struct substitute< + F + , Dest + , Source + BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(Arity) + > +{ + typedef F::type...> type; +}; +#endif // !defined(BOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES) + #define BOOST_VARIANT_AUX_SUBSTITUTE_TYPEDEF_IMPL(N) \ typedef typename substitute< \ BOOST_PP_CAT(U,N), Dest, Source \