Re: [Boost-bugs] [Boost C++ Libraries] #4963: program_options :: command_line_parser :: command_line_parser doesn't accept const char * argv []

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4963: program_options :: command_line_parser :: command_line_parser doesn't accept const char * argv []
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-08 11:52:45


#4963: program_options :: command_line_parser :: command_line_parser doesn't
accept const char * argv []
-------------------------------+--------------------------------------------
  Reporter: pal666@… | Owner: vladimir_prus
      Type: Feature Requests | Status: closed
 Milestone: To Be Determined | Component: program_options
   Version: Boost 1.45.0 | Severity: Cosmetic
Resolution: duplicate | Keywords:
-------------------------------+--------------------------------------------

Comment (by Serge Pavlovsky <pal666@…>):

 according to n3000 it's implementation-defined:

 It shall have a return type of type int, but otherwise its type is
 implementation-defined. All implementations shall allow both of the
 following definitions of main:

 {{{
 int main() { /* ... */ }
 }}}
 and
 {{{
 int main(int argc, char* argv[]) { /* ... */ }
 }}}

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