COIN-OR::LEMON - Graph Library

Changeset 315:c887e703b566 in lemon-1.0 for lemon


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

Fix an erroneous const declaration in ArgParser?

Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/arg_parser.cc

    r214 r315  
    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 r315  
    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.