# HG changeset patch # User alpar # Date 1133253830 0 # Node ID 1fee7c6b51296ee6903681a028555a868a4e5ba3 # Parent eb6c34c76501175ee02e1f51d0b256cce775b69c Clarify INVALID implementation. diff -r eb6c34c76501 -r 1fee7c6b5129 lemon/base.cc --- a/lemon/base.cc Tue Nov 29 08:40:03 2005 +0000 +++ b/lemon/base.cc Tue Nov 29 08:43:50 2005 +0000 @@ -24,4 +24,6 @@ double Tolerance::def_epsilon = 1e-10; float Tolerance::def_epsilon = 1e-4; + const Invalid INVALID = Invalid(); + } //namespace lemon diff -r eb6c34c76501 -r 1fee7c6b5129 lemon/invalid.h --- a/lemon/invalid.h Tue Nov 29 08:40:03 2005 +0000 +++ b/lemon/invalid.h Tue Nov 29 08:43:50 2005 +0000 @@ -38,13 +38,13 @@ /// \ref Invalid is a global type that converts to each iterator /// in such a way that the value of the target iterator will be invalid. - // It is also used to convert the \c INVALID constant to the - // node iterator that makes is possible to write + //const Invalid &INVALID = *(Invalid *)0; - //extern Invalid INVALID; - - //const Invalid &INVALID = *(Invalid *)0; +#ifdef LEMON_ONLY_TEMPLATES const Invalid INVALID = Invalid(); +#else + extern const Invalid INVALID; +#endif } //namespace lemon