Re: [Boost-users] Boost program_options

Date: Sat, 22 Aug 2009 10:22:40 +0400 From: Vladimir Prus <vladimir@codesourcery.com> To: boost-users@lists.boost.org Subject: Re: [Boost-users] Boost program_options Message-ID: <h6o2r1$j2f$1@ger.gmane.org> Content-Type: text/plain; charset=us-ascii Steve Nolen wrote:
No, it's not actually changing anything.
I know the c standard calls for the argv in main's prototype to be non-const, but why can't parse_command_line be more restrictive?
Because it that case, you won't be able to pass main's argv to parse_command_line. - Volodya --------------------- ok why not? you would be passing a non-const (main::argv) to a const qualified parameter. this would just guarantee that the function couldn't modify it (which is what you're telling me is the case here). i thought this was allowed. -steve
participants (3)
-
Ilya Sokolov
-
Steve Nolen
-
Steven Watanabe