COIN-OR::LEMON - Graph Library

Changeset 1836:1fee7c6b5129 in lemon-0.x


Ignore:
Timestamp:
11/29/05 09:43:50 (14 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2388
Message:

Clarify INVALID implementation.

Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/base.cc

    r1835 r1836  
    2525  float Tolerance<float>::def_epsilon = 1e-4;
    2626
     27  const Invalid INVALID = Invalid();
     28
    2729} //namespace lemon
  • lemon/invalid.h

    r1435 r1836  
    3939  /// in such a way that the value of the target iterator will be invalid.
    4040
    41   // It is also used to convert the \c INVALID constant to the
    42   // node iterator that makes is possible to write
     41  //const Invalid &INVALID = *(Invalid *)0;
    4342
    44   //extern Invalid INVALID;
    45 
    46   //const Invalid &INVALID = *(Invalid *)0;
     43#ifdef LEMON_ONLY_TEMPLATES
    4744  const Invalid INVALID = Invalid();
     45#else
     46  extern const Invalid INVALID;
     47#endif
    4848
    4949} //namespace lemon
Note: See TracChangeset for help on using the changeset viewer.