<div dir="ltr"><div><div><div><div>I am a humble geologist, rather than a Computer Scientist, and do not pretend to understand all the ins-and-outs of this type of discussion - and hence read, in the hopes of learning, but otherwise keep quiet!<br><br></div>I suspect that I am also something of a 'throw-back' in that I continue to use Simula as my primary programming language. Today's Simula compilers are 'cross-compilers', in that they generate code in c, which is then compiled and linked with an appropriate c compiler (it actually makes providing software for multiple platforms a lot easier ...). <br><br></div>Having said that, my only concern with the use of (C++) Vector structures, rather than c Arrays, would be the mappability required between application language and implementation language. If the C++ structures are universal, fine. If not, then either interface code (needing maintenance) or c alternatives would be needed. My example is based on Simula: it would be interesting to know how Java or Python might interact.<br><br></div>Best wishes,<br><br></div>Peter<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 May 2016 at 00:45, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le jeudi 05 mai 2016 00:51:28, Mateusz Loskot a écrit :<br>
> On 4 May 2016 at 23:30, Kurt Schwehr <<a href="mailto:schwehr@gmail.com">schwehr@gmail.com</a>> wrote:<br>
> > To start off the conversation, I wrote up a doc on changing large C<br>
> > arrays on the stack to std::vectors to get this data off of the stack<br>
> > and to simplify initialization.<br>
><br>
> Since many, if not most, of the ideas rely on availability of the C++11<br>
> features,<br>
> it might be a good idea to first agree on C++11 as the lowest<br>
> required C++ compilation mode.<br>
><br>
> Let's poll if there are any users who require C++03 at all.<br>
<br>
</span>I think there are different topics in what Kurt proposes :<br>
- style and other changes that are not bound to a particular compiler version<br>
- changes potentially dependant of the C++ version<br>
<br>
Of the potential issues with requiring C++11, I can think of OSGeo4W. It is<br>
mostly(completely?) built with Visual Studio 2010. And from<br>
<a href="https://msdn.microsoft.com/en-us/library/hh567368.aspx" rel="noreferrer" target="_blank">https://msdn.microsoft.com/en-us/library/hh567368.aspx</a> , support of C++11 is<br>
only partial in VS 2010<br>
<br>
Regarding the current use of VS2010 in OSGeo4W, this is discussed here :<br>
<a href="https://lists.osgeo.org/pipermail/discuss/2016-February/015658.html" rel="noreferrer" target="_blank">https://lists.osgeo.org/pipermail/discuss/2016-February/015658.html</a><br>
<br>
Potentially we could imagine having GDAL compiled with a later VS version and<br>
have the rest using VS2010, since most (all?) other software in OSGeo4W use it<br>
probably through its C API. Hum, actually that must not be true for OTB that<br>
uses the C++ API I think. Perhaps Jürgen has something to add regarding this<br>
compiler issue ?<br>
<br>
On the other hand regarding dependencies of GDAL, the binary propritary SDKs<br>
with a C++ API could be a problem, although they will likely move on too.<br>
- FileGDB SDK 1.4: available for VS2010, VS2012, VS2013<br>
- ECW SDK 5.2.1: available for VS2010, VS2012, VS2013<br>
- MrSID SDK: I didn't check. Perhaps Kirk can tell us ?<br>
But I'm not sure about the compatibility of C++11 build against non-C++11<br>
builds in the VS realm : can a GDAL C++11 build link against a library built<br>
without C++11 enabled ? Will not there be ABI problems ?<br>
<span class="HOEnZb"><font color="#888888"><br>
Even<br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">----------------------------------------------------------------------------------------------------------------<br>Peter J Halls, PhD Student, Post-war Reconstruction and Development Unit (PRDU),<br> University of York<br><br>Snail mail: PRDU, Derwent College, University of York,<br> Heslington, York YO10 5DD<br>This message has the status of a private and personal communication<br>----------------------------------------------------------------------------------------------------------------</div>
</div>