Overload boost::program_options validate() for double?

26 Jul
2005
26 Jul
'05
3:51 p.m.
Hi, I am having difficulty overloading validate() of boost::program_options to do conversion of doubles. I define it like in the example code ( http://www.boost.org/doc/html/program_options/howto.html#id549525): void validate(boost::any& v, const vector<string>& values, double* target_type, int) { cerr << "TEST\n"; } However, this method is bypassed and the original validate method is used instead. How can I get it to use *my* validate implementation for the double type? Thanks, Joseph -- http://www.cs.nyu.edu/~turian/
7151
Age (days ago)
7151
Last active (days ago)
0 comments
1 participants
participants (1)
-
Joseph Turian