2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00

X3: Fix encoding char cast type

6821c8208b port to X3
This commit is contained in:
Nikita Kniazev
2021-05-24 01:17:35 +03:00
parent db8bdf3d71
commit 9d37a0622f
2 changed files with 2 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ namespace boost { namespace spirit { namespace x3
template <typename Encoding>
struct char_class_base
{
typedef typename Encoding::char_type char_type;
typedef typename Encoding::classify_type char_type;
#define BOOST_SPIRIT_X3_CLASSIFY(name) \
template <typename Char> \

View File

@@ -167,6 +167,7 @@ main()
BOOST_TEST(test("0", xdigit));
BOOST_TEST(test("f", xdigit));
BOOST_TEST(!test("g", xdigit));
BOOST_TEST(!test("\xF1", print));
}
{