<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">How about C++11 threads?<br>
<br>
Ray<br>
<br>
<br>
On 5/5/2016, Thursday 12:43 PM, Mark Coletti wrote:<br>
</div>
<blockquote
cite="mid:CAHpqhBPqusidXfbnY8shBpLQgVu-73kUd6dCNAHwVFhYp9+vcQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Thu, May 5, 2016 at 11:15 AM, Even
Rouault <span dir="ltr"><<a moz-do-not-send="true"
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">
<div class="HOEnZb">
<div class="h5">[...]</div>
</div>
That would be interesting if you (or anyone) could list
which C++11 features would be killer features<br>
to justify the upgrade to C++11 vs the potential pains
that such a move might cause (especially<br>
as I raised in other emails, given the fact that GDAL uses
a number of other libs and is used by a number<br>
of other libs) [...]</blockquote>
<div><br>
</div>
<div>This is an off the cuff list of C++-11 niceties, and by
no means exhaustive:</div>
<div><br>
</div>
<div>- <font face="monospace, monospace">std::move()</font></div>
<div>- <b>lambda expressions</b></div>
<div>- <font face="monospace, monospace">auto</font>
keyword</div>
<div>- native smart pointer support, such as <font
face="monospace, monospace">std::unique_ptr </font>and
<font face="monospace, monospace">std::shared_ptr</font>
(though there's always the Boost fallback)</div>
<div>- concurrency API</div>
<div>- <font face="monospace, monospace">nullptr</font></div>
<div> </div>
<div><br>
</div>
<div>Also, it's been many, many years since I last looked at
GDAL/OGR source. When I did I noted a lot of C-style I/O
calls instead of using C++ equivalents. Is that still the
case? If so, that's one area ripe for refactoring.</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>Mark</div>
</div>
-- <br>
<div class="gmail_signature"><a moz-do-not-send="true"
href="mailto:mcoletti@gmail.com" target="_blank">mcoletti@gmail.com</a><br>
<div><br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<p><br>
</p>
</body>
</html>