the lexical cast operator should be in the same namespace as the type for ADL to work properly
| 24 | |
| 25 | // the lexical cast operator should be in the same namespace as the type for ADL to work properly |
| 26 | bool 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 | |
| 31 | DoubleValues doubles; |
| 32 | void argparse(CLI::Option_group *group) { group->add_option("--dv", doubles)->default_str("0"); } |