Skip to content

Commit

Permalink
Fix compilation with MSVC 12+
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelRaad committed Jul 5, 2014
1 parent e95d80d commit 51e095f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/boost/spirit/home/support/attributes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ namespace boost { namespace spirit { namespace traits
: is_weak_substitute<T, Expected>
{};

template <typename T0, typename ...TN, typename Expected>
struct is_weak_substitute<boost::variant<T0, TN...>,
template <typename T0, typename T1, typename ...TN, typename Expected>
struct is_weak_substitute<boost::variant<T0, T1, TN...>,
Expected>
: mpl::bool_<is_weak_substitute<T0, Expected>::type::value &&
is_weak_substitute<boost::variant<TN...>, Expected>::type::value>
is_weak_substitute<boost::variant<T1, TN...>, Expected>::type::value>
{};
#else
#define BOOST_SPIRIT_IS_WEAK_SUBSTITUTE(z, N, _) \
Expand Down
6 changes: 3 additions & 3 deletions include/boost/spirit/home/support/container.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ namespace boost { namespace spirit { namespace traits
: is_container<T>
{};

template<typename T0, typename ...TN>
struct is_container<boost::variant<T0, TN...> >
template<typename T0, typename T1, typename ...TN>
struct is_container<boost::variant<T0, T1, TN...> >
: mpl::bool_<is_container<T0>::value ||
is_container<boost::variant<TN...> >::value>
is_container<boost::variant<T1, TN...> >::value>
{};

#else
Expand Down

0 comments on commit 51e095f

Please sign in to comment.