Changeset 34261 for lang/cplusplus/picojson/trunk/picojson.h
 Timestamp:
 07/03/09 10:09:42 (7 years ago)
 Files:

 1 modified
Legend:
 Unmodified
 Added
 Removed

lang/cplusplus/picojson/trunk/picojson.h
r34254 r34261 588 588 } 589 589 590 template < bool FALSE> struct last_error_t {590 template <typename T> struct last_error_t { 591 591 static std::string s; 592 592 }; 593 template < bool FALSE> std::string last_error_t<FALSE>::s;593 template <typename T> std::string last_error_t<T>::s; 594 594 595 595 inline void set_last_error(const std::string& s) { 596 last_error_t< false>::s = s;596 last_error_t<bool>::s = s; 597 597 } 598 598 599 599 inline const std::string& get_last_error() { 600 return last_error_t< false>::s;600 return last_error_t<bool>::s; 601 601 } 602 602 }