jsoncpp
jsoncpp copied to clipboard
operator = works incorrect
int main(int argc, char* argv[])
{
Json::Value src, dst;
src["a"] = 1;
src["t"] = "some txt";
// Ok, we have { a:1, t:"some txt" }
const Json::Value const_src = src; // Ok, we have copy of src
dst = const_src;
// Error: const_src == nullValue
}
Is it normal const Value changes by 'operator=' ? Why 'operator=' don't deep copy of const_src?
Related to #704?
Unable to reproduce at e6a588a2461f6c7cc7af37604363dd67757ccae1, everything works as expected.
Ok. Please re-open if it recurs.
Should it be closed?