File indexing completed on 2025-01-18 09:40:50
0001 #ifndef BOOST_METAPARSE_V1_UTIL_UNLESS_ERROR_HPP
0002 #define BOOST_METAPARSE_V1_UTIL_UNLESS_ERROR_HPP
0003
0004
0005
0006
0007
0008
0009 #include <boost/metaparse/v1/is_error.hpp>
0010
0011 #include <boost/mpl/equal_to.hpp>
0012 #include <boost/mpl/eval_if.hpp>
0013
0014 namespace boost
0015 {
0016 namespace metaparse
0017 {
0018 namespace v1
0019 {
0020 template <class T, class NotErrorCase>
0021 struct unless_error :
0022 boost::mpl::eval_if<typename is_error<T>::type, T, NotErrorCase>
0023 {};
0024 }
0025 }
0026 }
0027
0028 #endif
0029