/*============================================================================= Copyright (c) 2001-2014 Joel de Guzman 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) ==============================================================================*/ #if !defined(BOOST_SPIRIT_X3_CHAR_APRIL_16_2006_1051AM) #define BOOST_SPIRIT_X3_CHAR_APRIL_16_2006_1051AM #if defined(_MSC_VER) #pragma once #endif #include #include #include #include namespace boost { namespace spirit { namespace x3 { namespace standard { typedef any_char char_type; char_type const char_ = char_type(); } using standard::char_type; using standard::char_; namespace standard_wide { typedef any_char char_type; char_type const char_ = char_type(); } namespace ascii { typedef any_char char_type; char_type const char_ = char_type(); } namespace extension { template <> struct as_parser { typedef literal_char< char_encoding::standard, unused_type> type; typedef type value_type; static type call(char ch) { return type(ch); } }; template <> struct as_parser { typedef literal_char< char_encoding::standard_wide, unused_type> type; typedef type value_type; static type call(wchar_t ch) { return type(ch); } }; } inline literal_char lit(char ch) { return literal_char(ch); } inline literal_char lit(wchar_t ch) { return literal_char(ch); } }}} #endif