Boost logo

Boost Users :

From: Joseph Turian (turian_at_[hidden])
Date: 2005-07-26 10:51:13


I am having difficulty overloading validate() of boost::program_options to
do conversion of doubles.

I define it like in the example code (

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
How can I get it to use *my* validate implementation for the double type?




Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at