Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use BOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES to select variadic macro... #1

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/boost/spirit/home/qi/detail/pass_container.hpp
Expand Up @@ -198,7 +198,7 @@ namespace boost { namespace spirit { namespace qi { namespace detail
// We pass through the container attribute if at least one of the embedded
// types in the variant requires to pass through the attribute

#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && defined(BOOST_VARIANT_USE_VARIADIC_TEMPLATES)
#if !defined(BOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES)
template <typename Container, typename ValueType, typename Sequence
, typename T>
struct pass_through_container<Container, ValueType, boost::variant<T>
Expand Down
2 changes: 1 addition & 1 deletion include/boost/spirit/home/support/attributes.hpp
Expand Up @@ -202,7 +202,7 @@ namespace boost { namespace spirit { namespace traits
struct is_weak_substitute<T, optional<Expected> >
: is_weak_substitute<T, Expected> {};

#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && defined(BOOST_VARIANT_USE_VARIADIC_TEMPLATES)
#if !defined(BOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES)
template <typename T, typename Expected>
struct is_weak_substitute<boost::variant<T>, Expected>
: is_weak_substitute<T, Expected>
Expand Down
2 changes: 1 addition & 1 deletion include/boost/spirit/home/support/container.hpp
Expand Up @@ -59,7 +59,7 @@ namespace boost { namespace spirit { namespace traits
: is_container<T>
{};

#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && defined(BOOST_VARIANT_USE_VARIADIC_TEMPLATES)
#if !defined(BOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES)
template<typename T>
struct is_container<boost::variant<T> >
: is_container<T>
Expand Down
2 changes: 1 addition & 1 deletion include/boost/spirit/home/support/detail/as_variant.hpp
Expand Up @@ -30,7 +30,7 @@ namespace boost { namespace spirit { namespace detail
template <int size>
struct as_variant_impl;

#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && defined(BOOST_VARIANT_USE_VARIADIC_TEMPLATES)
#if !defined(BOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES)
#else
template <>
struct as_variant_impl<0>
Expand Down