anhero / JsonBox

This is a JSON C++ library. It can write and read JSON files with ease and speed.
MIT License
115 stars 60 forks source link

JsonBox::Value operator operator <, > and == broken #17

Closed juml closed 9 years ago

juml commented 10 years ago

JsonBox::Value operator operator <, > and == broken as comparing value data against data, not rhs. So code like following asserts.

JsonBox::Value v1, v2;
v1.setInt(234);
v2.setInt(235);

assert( v1 < v2);