Ignore:
Timestamp:
04/15/11 23:01:59 (10 years ago)
Author:
tbretz
Message:
Changed second argument in Parse to const as well as in all main functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Configuration.cc

    r10330 r10372  
    258258 - An example can be found in \ref argv.cc
    259259
    260 @todo Maybe we should remove the necessity to propagate argv[0] in the constructor?
     260@todo
     261
     262 - Maybe we should remove the necessity to propagate argv[0] in the constructor?
     263 - Add an option to the constructor to switch of database/file access
    261264
    262265*/
     
    776779//!    - proper handling and error messages if files not available
    777780//
    778 const po::variables_map &Configuration::Parse(int argc, char **argv)
     781const po::variables_map &Configuration::Parse(int argc, const char **argv)
    779782{
    780783    const po::positional_options_description &opt_positional = fArgumentPositions;
     
    803806    // ------------------------ (2) --------------------------
    804807
    805     po::command_line_parser parser(argc, argv);
     808    po::command_line_parser parser(argc, const_cast<char**>(argv));
    806809    parser.options(opt_commandline);
    807810    parser.positional(opt_positional);
Note: See TracChangeset for help on using the changeset viewer.