Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > dc9b5eb62a4d8b54b80379fd86561955 > files > 3486

boost-examples-1.68.0-4.mga7.i586.rpm

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.