COIN-OR::LEMON - Graph Library

Changeset 2026:8d49961ec50f in lemon-0.x


Ignore:
Timestamp:
03/31/06 14:04:48 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2665
Message:

NaN checking to be conform to MinGW32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_base.h

    r1993 r2026  
    160160    ///The not a number constant
    161161    static const Value NaN;
     162
     163    static inline bool isNaN(const Value& v) { return v!=v; }
    162164   
    163165    ///Refer to a column of the LP.
     
    11061108    ///\e Solve the LP problem at hand
    11071109    ///
    1108     ///\return The result of the optimization procedure. Possible values and their meanings can be found in the documentation of \ref SolveExitStatus.
     1110    ///\return The result of the optimization procedure. Possible
     1111    ///values and their meanings can be found in the documentation of
     1112    ///\ref SolveExitStatus.
    11091113    ///
    11101114    ///\todo Which method is used to solve the problem
     
    12911295    LpSolverBase::Constr tmp(c);
    12921296    ///\todo Create an own exception type.
    1293     if(!isnan(tmp.lowerBound())) throw LogicError();
     1297    if(!LpSolverBase::isNaN(tmp.lowerBound())) throw LogicError();
    12941298    else tmp.lowerBound()=n;
    12951299    return tmp;
     
    13041308    LpSolverBase::Constr tmp(c);
    13051309    ///\todo Create an own exception type.
    1306     if(!isnan(tmp.upperBound())) throw LogicError();
     1310    if(!LpSolverBase::isNaN(tmp.upperBound())) throw LogicError();
    13071311    else tmp.upperBound()=n;
    13081312    return tmp;
     
    13181322    LpSolverBase::Constr tmp(c);
    13191323    ///\todo Create an own exception type.
    1320     if(!isnan(tmp.upperBound())) throw LogicError();
     1324    if(!LpSolverBase::isNaN(tmp.upperBound())) throw LogicError();
    13211325    else tmp.upperBound()=n;
    13221326    return tmp;
     
    13311335    LpSolverBase::Constr tmp(c);
    13321336    ///\todo Create an own exception type.
    1333     if(!isnan(tmp.lowerBound())) throw LogicError();
     1337    if(!LpSolverBase::isNaN(tmp.lowerBound())) throw LogicError();
    13341338    else tmp.lowerBound()=n;
    13351339    return tmp;
Note: See TracChangeset for help on using the changeset viewer.