Boost C++ Libraries: Ticket #4963: program_options :: command_line_parser :: command_line_parser doesn't accept const char * argv [] https://svn.boost.org/trac10/ticket/4963 <p> i prefer to declare argv as pointers to const char please add another overload </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4963 Trac 1.4.3 pal666@… Wed, 08 Dec 2010 08:55:09 GMT type, component, severity changed; owner set https://svn.boost.org/trac10/ticket/4963#comment:1 https://svn.boost.org/trac10/ticket/4963#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Feature Requests</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">program_options</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Cosmetic</span> </li> </ul> Ticket Vladimir Prus Wed, 08 Dec 2010 09:19:03 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4963#comment:2 https://svn.boost.org/trac10/ticket/4963#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Thank you for the port. </p> <p> This seems to be duplicate of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3909" title="#3909: Bugs: parse_command_line has bad declaration (closed: fixed)">#3909</a>, which is fixed as of now. </p> <p> Please be advised that declaring argv as const is in violation of the C++ Standard. </p> Ticket Serge Pavlovsky <pal666@…> Wed, 08 Dec 2010 11:52:45 GMT <link>https://svn.boost.org/trac10/ticket/4963#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4963#comment:3</guid> <description> <p> according to n3000 it's implementation-defined: </p> <p> 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: </p> <pre class="wiki">int main() { /* ... */ } </pre><p> and </p> <pre class="wiki">int main(int argc, char* argv[]) { /* ... */ } </pre> </description> <category>Ticket</category> </item> </channel> </rss>