1 #ifndef BOOST_METAPARSE_V1_CPP11_ONE_CHAR_EXCEPT_C_HPP 2 #define BOOST_METAPARSE_V1_CPP11_ONE_CHAR_EXCEPT_C_HPP 3 4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2017. 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) 8 9 #include <boost/metaparse/v1/error/unexpected_character.hpp> 10 #include <boost/metaparse/v1/cpp11/impl/is_none_c.hpp> 11 #include <boost/metaparse/v1/accept_when.hpp> 12 #include <boost/metaparse/v1/one_char.hpp> 13 14 namespace boost 15 { 16 namespace metaparse 17 { 18 namespace v1 19 { 20 template <char... Cs> 21 struct one_char_except_c : 22 accept_when< 23 one_char, 24 impl::is_none_c<Cs...>, 25 error::unexpected_character 26 > 27 {}; 28 } 29 } 30 } 31 32 #endif 33 34