COIN-OR::LEMON - Graph Library

Changes in / [312:a4d499904482:310:a9e8f310507f] in lemon-1.2


Ignore:
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • demo/arg_parser_demo.cc

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

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

    r311 r290  
    4747
    4848    int _argc;
    49     const char * const *_argv;
     49    const char **_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 * const *argv);
     122    ArgParser(int argc, const char **argv);
    123123
    124124    ~ArgParser();
Note: See TracChangeset for help on using the changeset viewer.