<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, 25 Nov 2026 at 09:12, David Brown via Std-Proposals &lt;<a href="mailto:std-proposals@lists.isocpp.org">std-proposals@lists.isocpp.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 24/11/2026 20:44, Andrey Semashev via Std-Proposals wrote:<br>
&gt; To be fair, at least some C++ compiler vendors are rather eager to<br>
&gt; remove deprecated features. For example, std::auto_ptr, std::iterator<br>
&gt; are effectively gone.<br>
&gt; <br>
<br>
Deprecated features cannot be removed from compliant toolchains <br>
(compilers and/or standard libraries, whichever is relevant).  A <br>
deprecated feature is still a feature of the language.  The toolchain <br></blockquote><div><br></div><div>std::auto_ptr and std::iterator aren&#39;t deprecated though, they&#39;re not part of the C++ standard, and haven&#39;t been for years.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
can generate warnings on their usage, but they still need to be there. <br>
Only once the feature is removed from the standard (typically a <br>
standards version or two after deprecation) can they be removed from the <br>
toolchain.  And even there, toolchains generally do keep them.  Try to <br>
use std::auto_ptr with gcc and you&#39;ll find it is still there, and still <br>
works, but generates a &quot;deprecated&quot; warning unless you specifically <br>
choose &quot;-std=c++98&quot; - then no working is generated.  (std::iterator is <br>
handled similarly.)  Individual toolchains may vary, of course.<br>
<br>
The only features that are typically removed from toolchains are those <br>
that are /removed/ from the standards, not /deprecated/, and which are <br></blockquote><div><br></div><div>Like std::auto_ptr and std::iterator.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
very rarely seen in real code.  An example of that would be the &quot;garbage <br>
collector support&quot; parts of &lt;memory&gt;, such as std::declare_reachable. <br>
Even there, toolchains support them for older standards - they are not <br>
removed from the libraries.<br>
<br></blockquote><div><div> </div> </div></div></div>

