|
Boost Users : |
From: Joseph Turian (turian_at_[hidden])
Date: 2005-07-26 10:51:13
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/
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net