COIN-OR::LEMON - Graph Library

Changeset 311:c887e703b566 in lemon


Ignore:
Timestamp:
10/09/08 12:58:24 (10 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Message:

Fix an erroneous const declaration in ArgParser?

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • demo/arg_parser_demo.cc

    r209 r311  
    2828 
    2929using namespace lemon; 
    30 int main(int argc, const char **argv) 
     30int main(int argc, char **argv) 
    3131{ 
    3232  // Initialize the argument parser 
  • lemon/arg_parser.cc

    r214 r311  
    2727  } 
    2828 
    29   ArgParser::ArgParser(int argc, const char **argv) :_argc(argc), _argv(argv), 
    30                                                     _command_name(argv[0]) { 
     29  ArgParser::ArgParser(int argc, const char * const *argv) 
     30    :_argc(argc), _argv(argv), _command_name(argv[0]) { 
    3131    funcOption("-help","Print a short help message",_showHelp,this); 
    3232    synonym("help","-help"); 
    3333    synonym("h","-help"); 
    34  
    3534  } 
    3635 
  • lemon/arg_parser.h

    r290 r311  
    4747 
    4848    int _argc; 
    49     const char **_argv; 
     49    const char * const *_argv; 
    5050 
    5151    enum OptType { UNKNOWN=0, BOOL=1, STRING=2, DOUBLE=3, INTEGER=4, FUNC=5 }; 
     
    120120 
    121121    ///Constructor 
    122     ArgParser(int argc, const char **argv); 
     122    ArgParser(int argc, const char * const *argv); 
    123123 
    124124    ~ArgParser(); 
Note: See TracChangeset for help on using the changeset viewer.