--- gmsh-4.8.4-source/Common/picojson.h 2021-04-09 20:50:41.000000000 +0200 +++ gmsh-4.8.4-source/Common/picojson.h 2021-08-25 23:07:12.206460047 +0200 @@ -186,8 +186,8 @@ private: template value(const T *); // intentionally defined to block implicit conversion of pointer to bool template static void _indent(Iter os, int indent); - template void _serialize(Iter os, int indent) const; - std::string _serialize(int indent) const; + template void serialize_(Iter os, int indent) const; + std::string serialize_(int indent) const; void clear(); }; @@ -549,11 +549,11 @@ } template void value::serialize(Iter oi, bool prettify) const { - return _serialize(oi, prettify ? 0 : -1); + return serialize_(oi, prettify ? 0 : -1); } inline std::string value::serialize(bool prettify) const { - return _serialize(prettify ? 0 : -1); + return serialize_(prettify ? 0 : -1); } template void value::_indent(Iter oi, int indent) { @@ -563,7 +563,7 @@ } } -template void value::_serialize(Iter oi, int indent) const { +template void value::serialize_(Iter oi, int indent) const { switch (type_) { case string_type: serialize_str(*u_.string_, oi); @@ -580,7 +580,7 @@ if (indent != -1) { _indent(oi, indent); } - i->_serialize(oi, indent); + i->serialize_(oi, indent); } if (indent != -1) { --indent; @@ -608,7 +608,7 @@ if (indent != -1) { *oi++ = ' '; } - i->second._serialize(oi, indent); + i->second.serialize_(oi, indent); } if (indent != -1) { --indent; @@ -628,9 +628,9 @@ } } -inline std::string value::_serialize(int indent) const { +inline std::string value::serialize_(int indent) const { std::string s; - _serialize(std::back_inserter(s), indent); + serialize_(std::back_inserter(s), indent); return s; }