Hi, is there support for adding a custom parser by manually specializing a template function?
E.g.;
struct Foobar {
...
};
template <>
const std::vector<Foobar> &cxxopts::OptionValue::as<std::vector<Foobar>>() const
{
...
}
foobar = parsed["foobar"].as<std::vector<Foobar>>();
I tried to specialize template <> T&cxxopts::OptionValue::as<T>() const in order to implement the custom parser, however it returns a reference so I guess it's not the proper way to do this?
Hi, is there support for adding a custom parser by manually specializing a template function?
E.g.;
I tried to specialize
template <> T&cxxopts::OptionValue::as<T>() constin order to implement the custom parser, however it returns a reference so I guess it's not the proper way to do this?