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-02-08 15:05:02


#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 anonymous):

 I am not sure about violation because adding const does not destroy
 anything.
 But the Standard says about int main(int argc, char* argv[]), so from this
 point of view you are right.

 Anyway I don't know if there is a compiler which rejects main function
 with char const* const argv[].
 Event Comeau compiler accepts it.

 I suggest you to add remove_cv anyway, it will make code more correct.
 Thank you.

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