Add type operator for bool class
This commit is contained in:
parent
fcad58b342
commit
6b0db35db7
1
json.hpp
1
json.hpp
@ -190,6 +190,7 @@ namespace json {
|
|||||||
virtual bool operator==(const node &rhs) const
|
virtual bool operator==(const node &rhs) const
|
||||||
{ return rhs == *this; }
|
{ return rhs == *this; }
|
||||||
|
|
||||||
|
operator bool (void) const { return m_value; }
|
||||||
bool native (void) const { return m_value; }
|
bool native (void) const { return m_value; }
|
||||||
|
|
||||||
virtual std::ostream& print (std::ostream &os) const;
|
virtual std::ostream& print (std::ostream &os) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user