Re: [Boost-bugs] [Boost C++ Libraries] #3909: parse_command_line has bad declaration

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3909: parse_command_line has bad declaration
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-05-24 12:16:11


#3909: parse_command_line has bad declaration
--------------------------+-------------------------------------------------
 Reporter: anonymous | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: program_options
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------

Comment(by ilyasokol@…):

 See these use cases:

 http://lists.boost.org/boost-users/2006/01/16620.php
 http://lists.boost.org/boost-users/2009/08/50968.php

 The signature can be changed as follows:

 {{{
 template<class charT>
 basic_parsed_options<typename remove_cv<charT>::type>
 parse_command_line(int argc, const charT* const argv[],
                    ....)

 or

 template<class charT>
 basic_parsed_options<typename remove_cv<charT>::type>
 parse_command_line(int argc, const charT* const* argv,
                    ....)
 }}}

 (The second is a bit more readable for me)

 There is no need to remove_cv<charT> and the change is fully
 backward compatible.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3909#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:03 UTC