lemon/invalid.h
changeset 1836 1fee7c6b5129
parent 1435 8e85e6bbefdf
child 1875 98698b69a902
     1.1 --- a/lemon/invalid.h	Tue Nov 29 08:40:03 2005 +0000
     1.2 +++ b/lemon/invalid.h	Tue Nov 29 08:43:50 2005 +0000
     1.3 @@ -38,13 +38,13 @@
     1.4    /// \ref Invalid is a global type that converts to each iterator
     1.5    /// in such a way that the value of the target iterator will be invalid.
     1.6  
     1.7 -  // It is also used to convert the \c INVALID constant to the
     1.8 -  // node iterator that makes is possible to write 
     1.9 +  //const Invalid &INVALID = *(Invalid *)0;
    1.10  
    1.11 -  //extern Invalid INVALID;
    1.12 -
    1.13 -  //const Invalid &INVALID = *(Invalid *)0;
    1.14 +#ifdef LEMON_ONLY_TEMPLATES
    1.15    const Invalid INVALID = Invalid();
    1.16 +#else
    1.17 +  extern const Invalid INVALID;
    1.18 +#endif
    1.19  
    1.20  } //namespace lemon
    1.21