Boost logo

Boost :

From: Neal D. Becker (nbecker_at_[hidden])
Date: 2003-06-06 08:54:32


Currently (last I tested) program options when used with variable map will set
bool options to false even though they were not specified on the command
line. What I'd prefer is that all options be left alone unless they are set
on the command line. I've been bitten by this unexpected behaviour. (I set
bool option = true, then use

parse_command_line(argc, argv, desc);
    variables_map vm;
    store(opts, vm, desc);

And my bool option winds up set false even though nothing was specified on the
command line.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk