I'm making the assumption that the array of strings passed into the main function as argv
in void main( int argc, char* argv[] )
remains in scope for the duration of the application.
My question is therefore whether it is possible, using boost::program_options to get a pointer to the actual element in argv which represents a particular option.
That is, rather than allocating a std::string
when parsing, it is possible to just get a pointer to the start of a string option value.