Show
Ignore:
Timestamp:
07/03/09 10:09:42 (5 years ago)
Author:
kazuho
Message:

do not use FALSE, #defined under some environments

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/picojson/trunk/picojson.h

    r34254 r34261  
    588588  } 
    589589   
    590   template <bool FALSE> struct last_error_t { 
     590  template <typename T> struct last_error_t { 
    591591    static std::string s; 
    592592  }; 
    593   template <bool FALSE> std::string last_error_t<FALSE>::s; 
     593  template <typename T> std::string last_error_t<T>::s; 
    594594   
    595595  inline void set_last_error(const std::string& s) { 
    596     last_error_t<false>::s = s; 
     596    last_error_t<bool>::s = s; 
    597597  } 
    598598   
    599599  inline const std::string& get_last_error() { 
    600     return last_error_t<false>::s; 
     600    return last_error_t<bool>::s; 
    601601  } 
    602602}