1
0
Fork 0
arangodb/3rdParty/boost/1.62.0/libs/metaparse/example/parsing_error
jsteemann 3c8493e25f upgraded to boost version 1.62.0
correctly emit boost version

removed html files from boost directory
2017-01-04 18:08:06 +01:00
..
Jamfile.v2 upgraded to boost version 1.62.0 2017-01-04 18:08:06 +01:00
README upgraded to boost version 1.62.0 2017-01-04 18:08:06 +01:00
main.cpp upgraded to boost version 1.62.0 2017-01-04 18:08:06 +01:00

README

This example shows how a compile-time parsing error can be debugged.
The commented code fails to compile and on some platforms the error report might
be difficult to understand. This example demonstrates how debug_parsing_error
can be used to get a user friendly error report about such thing. You need to
run the compiled code to get the error message:

Compile-time parsing results
----------------------------
Input text:
aaac

Parsing failed:
line 1, col 4: Expected: b

The col and line information refers to the location of the error in the string
literal.