Warning, file /include/boost/spirit/home/x3/support/traits/is_variant.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008 #if !defined(BOOST_SPIRIT_X3_IS_VARIANT_JAN_10_2012_0823AM)
0009 #define BOOST_SPIRIT_X3_IS_VARIANT_JAN_10_2012_0823AM
0010
0011 #include <boost/variant.hpp>
0012 #include <boost/mpl/has_xxx.hpp>
0013 #include <boost/mpl/bool.hpp>
0014
0015 namespace boost { namespace spirit { namespace x3 { namespace traits
0016 {
0017 namespace detail
0018 {
0019
0020
0021
0022
0023
0024
0025
0026
0027 BOOST_MPL_HAS_XXX_TRAIT_DEF(adapted_variant_tag)
0028 }
0029
0030 template <typename T, typename Enable = void>
0031 struct is_variant
0032 : detail::has_adapted_variant_tag<T>
0033 {};
0034
0035 template <BOOST_VARIANT_ENUM_PARAMS(typename T)>
0036 struct is_variant<boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>>
0037 : mpl::true_
0038 {};
0039 }}}}
0040
0041 #endif