[PATCH,c++,wwwdocs] bugs: Remove old "export" non-bug
Jonathan Wakely
jwakely@redhat.com
Mon Jul 22 10:01:53 GMT 2024
On Mon, 22 Jul 2024 at 07:51, Gerald Pfeifer <gerald@pfeifer.com> wrote:
>
> We have been carrying this note on the "original" export feature for ages,
> and I believe it's not actually a FAQ, if it ever was.
>
> Jonathan moved this down when adding a note on ADL last fall.
>
> I now propose to drop it.
>
> Thoughts?
Sounds good to me.
I keep meaning to make a similar change to
https://isocpp.org/wiki/faq/templates#separate-template-fn-defn-from-decl-export-keyword
which is also outdated and irrelevant in 2024.
>
> Gerald
>
>
>
> diff --git a/htdocs/bugs/index.html b/htdocs/bugs/index.html
> index 40355911..7f2f485c 100644
> --- a/htdocs/bugs/index.html
> +++ b/htdocs/bugs/index.html
> @@ -622,17 +622,6 @@ and the scope operator, or compile using C++11 or later. Defect report 1104
> changed the parser rules so that <code><::</code> works as expected.
> </p></dd>
>
> -<dt><code>export</code></dt>
> -<dd><p>Most C++ compilers (G++ included) never implemented C++98
> -<code>export</code>, which was removed in C++11, and the keyword reused in
> -C++20 by the Modules feature. The C++98 feature was intended to support
> -separate compilation of template declarations and
> -definitions. Without <code>export</code>, a template definition must be in
> -scope to be used. The obvious workaround is simply to place all definitions in
> -the header itself. Alternatively, the compilation unit containing template
> -definitions may be included from the header.</p></dd>
> -</dl>
> -
> <h3 id="upgrading">Common problems when upgrading the compiler</h3>
>
> <h4>ABI changes</h4>
>
More information about the Gcc-patches
mailing list