[gdal-dev] C++11 timeline

Greg Troxel gdt at lexort.com
Thu Jan 5 18:42:50 PST 2017


Even Rouault <even.rouault at spatialys.com> writes:

>> How will that be impacted by a C++11 requirement?
>
> GCC 4.8 is needed for C++11 I think. There are folks using recent GDAL on older distros like 
> Ubuntu 12.04 (which ships with gcc 4.6). I guess they could switch to adding a PPA with a 
> more recent toolchain.

As a datapoint, NetBSD 6, a few years old but still supported, has gcc
4.5.  In general, it seems that requiring gcc 4.8 causes a fair bit of
grief for people.  I find that programs in straight C99 or older C++
build pretty much everywhere, and C++11 seems to take more effort.
Probably in 2 years this will be a non-issue.

Another possibility is to look at the features that would make a
difference and whether they are in boost.  As I somewhat fuzzily
understand it, much of the smart pointer stuff moved from boost to
C++11, so gcc 4.5 (or equivalent age clang) and boost may be a less
troublesome requirement.

Overall, I tend to think foundational support libraries should seek to
avoid being the thing that pushes someone to have to redo their
toolchain, and I am afraid that requiring C++11 would put gdal into that
category.

So, I think it's about how much trouble would be saved, vs imposed.   I
am not perceiving a lot of trouble from not using C++11 featues on the
dev list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 162 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170105/c90981cd/attachment-0001.sig>


More information about the gdal-dev mailing list