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/