class Foo {};
Foo foo;
namespace po = boost::program_options;
boost::program_options::options_description desc("Allowed options")
desc.add_options()
("foo", po::value<Foo>(&foo));
po::variables_map vm;
po::store(po::parse_command_line(argc, argv, desc), vm);
The above will eventually try to do a lex_cast from std::string& to Foo&
Is there a way for it to do a lex_cast from const char*& to Foo& instead?
Thanks!