```
#include <boost/parser/parser.hpp>
#include <iostream>
#include <string>
#include <variant>

namespace bp = boost::parser;

auto numeric_parser = bp::int_ | bp::double_;


auto numeric_parser = (bp::int_ >> bp::eoi) | bp::double_;

...does what you probably expected.


Cheers,

Filip