Boost logo

Boost Users :

From: Merrill Cornish (merrill.cornish_at_[hidden])
Date: 2006-01-25 16:43:10


I ran into the same problem. Once I thought about it, I realized
I had _never_ seen a C or C++ main() function prototype defined
with a const second argument.

I think I remember that one of the traditional C getopt() function
variants actually munges the argument list by removing that
arguments it recognizes, leaving anything else for direct processing
by the program.

I'm guessing program_options is therefore tacitly assuming the
second argument is non-const also.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at