<div dir="ltr"><div>My take... Using a typedef might make sense until std:: gets an implementation that is successfully battle tested and generally adopted.  std::auto_ptr miss the boat in many ways.  std::unique_ptr has staying power and most new C++ coders are expected to know and use it.  So I think hiding it behind a typedef is usually a hindrance to the reader.  I've tried typedefs with it several times and it generally hurt more than it helped.  And the cases where it seemed to help start going away with C++14 and C++17 IMHO.</div><div><br></div><div dir="ltr"><div><a href="https://stackoverflow.com/questions/3697686/why-is-auto-ptr-being-deprecated/15049187">https://stackoverflow.com/questions/3697686/why-is-auto-ptr-being-deprecated/15049187</a><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 8, 2018 at 9:35 AM Sandro Santilli <<a href="mailto:strk@kbt.io">strk@kbt.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Dec 07, 2018 at 09:08:01AM -0800, Martin Davis wrote:<br>
<br>
> * Makes implementation easier to change<br>
<br>
This was exactly the reason for starting to use that implementation.<br>
Wasn't it an auto_ptr before scoped_ptr existed ?<br>
<br>
--strk;<br>
_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geos-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geos-devel</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--<div><a href="http://schwehr.org" target="_blank">http://schwehr.org</a></div></div>