#ifndef BOOST_METAPARSE_V1_CPP11_ONE_OF_HPP #define BOOST_METAPARSE_V1_CPP11_ONE_OF_HPP // Copyright Abel Sinkovics (abel@sinkovics.hu) 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include #include #include #include #include namespace boost { namespace metaparse { namespace v1 { template struct one_of; template struct one_of { typedef one_of type; template struct apply : boost::mpl::eval_if< typename is_error>::type, boost::mpl::eval_if< typename is_error< typename one_of::template apply >::type, impl::eval_later_result< typename P::template apply, typename one_of::template apply >, typename one_of::template apply >, typename P::template apply > {}; }; template <> struct one_of<> : fail {}; } } } #endif