Add type operator for bool class

This commit is contained in:
Danny Robson 2011-10-01 01:57:46 +10:00
parent fcad58b342
commit 6b0db35db7

View File

@ -190,6 +190,7 @@ namespace json {
virtual bool operator==(const node &rhs) const
{ return rhs == *this; }
operator bool (void) const { return m_value; }
bool native (void) const { return m_value; }
virtual std::ostream& print (std::ostream &os) const;