Menu

#16 about "isEqual()" of value iterator

closed-accepted
Value (4)
5
2013-04-12
2013-01-15
No

file: src/lib_json/json_valueiterator.inl
method: ValueIteratorBase::copy( const SelfType &other )
-------------------------
detail:
Json::Value::iterator it;
for (it = j_root.begin(); it != j_root.end(); ++it)
{
// loop forever because "it" never be "equal" to "j_root.end()"
}
-------------------------
patch:
ValueIteratorBase::copy( const SelfType &other )
{
#ifndef JSON_VALUE_USE_INTERNAL_MAP
current_ = other.current_;
+ isNull_ = other.isNull_;
#else
if ( isArray_ )
iterator_.array_ = other.iterator_.array_;
iterator_.map_ = other.iterator_.map_;

Discussion

  • Baptiste Lepilleur

    Patch applied, thanks!

     
  • Baptiste Lepilleur

    • assigned_to: nobody --> blep
    • status: open --> closed-accepted
     

Log in to post a comment.