MCPcopy Create free account
hub / github.com/CLIUtils/CLI11 / lexical_cast

Function lexical_cast

examples/custom_parse.cpp:26–29  ·  view source on GitHub ↗

the lexical cast operator should be in the same namespace as the type for ADL to work properly

Source from the content-addressed store, hash-verified

24
25// the lexical cast operator should be in the same namespace as the type for ADL to work properly
26bool lexical_cast(const std::string &input, Values<double> & /*v*/) {
27 std::cout << "called correct lexical_cast function ! val: " << input << '\n';
28 return true;
29}
30
31DoubleValues doubles;
32void argparse(CLI::Option_group *group) { group->add_option("--dv", doubles)->default_str("0"); }

Callers 1

DeltaRangeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected