When using boost spirit x3 with an error handler and rule derived from annotate_on_success and the underlying iterator is an boost::spirit::istream_iterator it does not compile due to an incomplete type error:
error: invalid application of 'sizeof' to an incomplete type 'boost::spirit::x3::error_handler_tag'
When using boost spirit x3 with an error handler and rule derived from annotate_on_success and the underlying iterator is an boost::spirit::istream_iterator it does not compile due to an incomplete type error:
error: invalid application of 'sizeof' to an incomplete type 'boost::spirit::x3::error_handler_tag'
Here is an example code to reproduce the error:
You can find the example on godbolt.