COIN-OR::LEMON - Graph Library

Changeset 2436:0c941c524b47 in lemon-0.x for lemon


Ignore:
Timestamp:
04/24/07 11:39:01 (13 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3272
Message:

Integer parameters also convert to double

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/arg_parser.h

    r2410 r2436  
    333333        LEMON_ASSERT(i==_parser._opts.end(),
    334334                     std::string()+"Unkown option: '"+_name+"'");
    335         LEMON_ASSERT(i->second.type!=ArgParser::DOUBLE,
     335        LEMON_ASSERT(i->second.type!=ArgParser::DOUBLE &&
     336                     i->second.type!=ArgParser::INTEGER,
    336337                     std::string()+"'"+_name+"' is a floating point option");
    337         return *(i->second.double_p);
     338        return i->second.type==ArgParser::DOUBLE ?
     339          *(i->second.double_p) : *(i->second.int_p);
    338340      }
    339341      ///\e
Note: See TracChangeset for help on using the changeset viewer.