You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
My intention was that you could override parse_value with a parser for your type. But I'm not sure that I've done it correctly, and currently it will use the default parser which uses an overload for operator>> with your type.
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>() 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?The text was updated successfully, but these errors were encountered: