1 #ifndef BOOST_METAPARSE_V1_IS_ERROR_HPP
2 #define BOOST_METAPARSE_V1_IS_ERROR_HPP
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2011.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 #include <boost/metaparse/v1/fail_tag.hpp>
11 #include <boost/mpl/tag.hpp>
12 #include <boost/mpl/vector.hpp>
14 #include <boost/type_traits/is_same.hpp>
22 template <class T = boost::mpl::na>
26 typename boost::mpl::tag<typename T::type>::type
31 struct is_error<boost::mpl::na>
33 typedef is_error type;
35 template <class T = boost::mpl::na>
36 struct apply : is_error<T> {};