Boost logo

Boost Users :

From: Paul Giaccone (paulg_at_[hidden])
Date: 2006-01-19 04:39:59

Daniel Weiss wrote:

>Is there any possibility to posteriorily change the values stored in the
>options map read from the config file? I.e.:
>I have assigned the following option:
>( "AutomZoneDetect", po::value<std::string>() ->default_value( "off" ), "To
>detect zones automatically" );
>Now I would like to e.g. set this option to "on" at some point in my code...
>Greets, Dan!
Just store it in a string variable so you can set it later.

std::string my_option;

( "AutomZoneDetect", po::value<std::string>(&my_option) ->default_value( "off" ), "To
detect zones automatically" );

my_option = "on";

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