tzlaine / parser

A C++ parser combinator library.
Boost Software License 1.0
81 stars 12 forks source link

Constrain `parse*()` to require that `Attr` is not a parser #105

Closed tzlaine closed 6 months ago

tzlaine commented 7 months ago

This works:

return parse(s, input, bp::ws|bp::lit(','));

This blows up:

  auto skipper = bp::ws | bp::lit(',');
  return parse(s, input, skipper);

This is because the second case thinks that skipper is an out-param.