Re: [gdal-dev] CPLJSONDocument

2018-01-06 Thread Kurt Schwehr
Andrew, My take: GDAL is a not a place to look for good modern C++ code. And there is a of old style C++ baked into the APIs, so drivers are particularly tough. You can look for use of unique_ptr for some code that is heading in that direction. The other general problem with C++ code in GDAL i

Re: [gdal-dev] CPLJSONDocument

2018-01-06 Thread Andrew C Aitchison
On Fri, 5 Jan 2018, Kurt Schwehr wrote: * Passing char *psz yada all over the place in pure C++ code. A const std::string is usually not a noticeable expense and is a lot safer * CPLString when std::string will do just fine. And we can write free functions to operate on strings. I'm generally