Re: [Boost-bugs] [Boost C++ Libraries] #4142: Option names should be constructible from strings

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4142: Option names should be constructible from strings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-26 06:26:50


#4142: Option names should be constructible from strings
-------------------------------+--------------------------------------------
 Reporter: afoglia@… | Owner: vladimir_prus
     Type: Feature Requests | Status: new
Milestone: Boost 1.43.0 | Component: program_options
  Version: Boost 1.42.0 | Severity: Cosmetic
 Keywords: |
-------------------------------+--------------------------------------------

Comment(by anonymous):

 Here is one problem. Lets look at the following declaration:

 {{{
 options_description_easy_init::operator()(const char* name,
                                           const value_semantic* s,
                                           const char* description);
 }}}

 Note that you can't replace it with

 {{{
 options_description_easy_init::operator()(const std::string& name,
                                           const value_semantic* s,
                                           const std::string& description);
 }}}

 because the latter is not exception-safe due to unspecified order of
 arguments' evaluation.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4142#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC