[gdal-dev] Updating requirements to C++20 for GDAL 3.13 ?
Andrew C Aitchison
andrew at aitchison.me.uk
Fri Jan 16 01:25:20 PST 2026
[ Sorry for the delay in repyling.
The list server messages have not been reaching my mailbox. ]
On Thu, Dec 18, 2025 at 12:28?PM Howard Butler wrote:
>> and the consequence of that is there is a lot of code in GDAL that could
>> be removed if it were more aggressive about taking advantage of
>> now-standard C++ facilities and constructs. Less code means less to
>> maintain and less to break.
Daniel Baston replied:
> I agree with this as a principle, but looking at C++20 specifically I don't
> see opportunity for significant code removal on the order of C++11 or
> C++17. This thread brings up cpl::contains, cpl::starts_with, and
> cpl::ends_with.
I have long been looking forward to std::span.
Not only does it make some things easier to write safely,
but static analysis options like
clang++ -Wunsafe-buffer-usage
are only useful with std::span.
--
Andrew C. Aitchison Kendal, UK
andrew at aitchison.me.uk
More information about the gdal-dev
mailing list