$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [program options] option_description name as string
From: Chard (boost_at_[hidden])
Date: 2010-04-22 16:10:08
"Anthony Foglia" <AFoglia_at_[hidden]> wrote in message
news:4BD075A4.101_at_princeton.com...
> We tend to store the names of our options in strings (so we can reuse them
> later when getting the values out of the variable map). But
> option_descriptions can only be created from const char *, so we need to
> add a .c_str() when building the options_description.
>
> Is there any reason why options can't be constructed with a string?
> Otherwise I'll open a feature request bug.
This did come up recently on the dev list.
FWIW, here's the thread:
http://listarchives.boost.org/Archives/boost/2010/03/162646.php