Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2007-02-21 06:54:22


I have some requirement for input parameters:

Some of my input parameters represent a pair of files. Is there any way to parse this kind of a form:
-I "file1" "file1_related_file"

Trying to use the construct with:

po::value< std::pair<std::string,std::string> >() produces a compilation error within a lexical
cast, that there is no operator >> defined.

I know I could pass smth like:
-I "fiel1+related_file", but then I would need to split the string, what I would like to do, since
I see this as a task of program_options lib.

With Kind Regards,

Ovanes Markarian


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