Boost logo

Boost :

Subject: Re: [boost] [log] init methods and named parameters
From: Christoph Heindl (christoph.heindl_at_[hidden])
Date: 2010-03-05 12:06:20

> However, looking at the parse_config_file function reference I see there is
> some flag that hints that unknown options should be accepted. There are no
> docs on this feature, and the function interface is not described. It's also
> not clear how do I work with the result of this function.

something along the lines of

  std::ifstream ifs(config_file.c_str());
  po::store(po::parse_config_file(ifs, desc, true), vm);

will do the parsing. The parsed variables can then be accessed from
the variables map.

-- Christoph

Boost list run by bdawes at, gregod at, cpdaniel at, john at