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: 2011-10-01 13:05:15


#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
Resolution: | Keywords:
--------------------------------+-------------------------------------------

Comment (by Olaf van der Spek <olafvdspek@…>):

 Instead of std::string, you could use a template function and use data()
 and size() member functions of the passed in argument. Or, better yet,
 support a str_ref class (not yet available in Boost).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4142#comment:4>
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:07 UTC