Ticket #9238: is_container.patch
File is_container.patch, 1.1 KB (added by , 9 years ago) |
---|
-
boost/spirit/home/support/container.hpp
59 59 : is_container<T> 60 60 {}; 61 61 62 #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && defined(BOOST_VARIANT_USE_VARIADIC_TEMPLATES) 63 template<typename T> 64 struct is_container< boost::variant<T> > 65 : is_container<T> 66 {}; 67 68 template<BOOST_VARIANT_ENUM_PARAMS(typename T)> 69 struct is_container< boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> > 70 : mpl::bool_<is_container<T0>::value || 71 is_container< boost::variant<TN...> >::value> {}; 72 73 #else 62 74 #define BOOST_SPIRIT_IS_CONTAINER(z, N, data) \ 63 75 is_container<BOOST_PP_CAT(T, N)>::value || \ 64 76 /***/ … … 76 88 {}; 77 89 78 90 #undef BOOST_SPIRIT_IS_CONTAINER 91 #endif 79 92 80 93 template <typename T, typename Enable/* = void*/> 81 94 struct is_iterator_range