Open Kojoley opened 5 years ago
#include <boost/spirit/home/x3.hpp>
int main()
{
using boost::spirit::x3::eps;
using boost::spirit::x3::int_;
char const* const it = "";
int i;
parse(it, it, int_ | eps, i); // equivalent of -int_ which also should not compile
}
From my point of view all those cases are wrong and ideally should not compile by firing a static assert.