C++ Logo


Advanced search

Re: [std-proposals] Export namespaces without namespace block, only keyword (modules)

From: Lénárd Szolnoki <cpp_at_[hidden]>
Date: Wed, 07 Sep 2022 10:54:46 +0100
That should be corrected as well. The standard wording doesn't say that unnamed namespaces have internal linkage. Compilers implementing it by creating local symbols for entities within is an implementation detail.

On 6 September 2022 14:47:34 BST, Jason McKesson via Std-Proposals <std-proposals_at_[hidden]> wrote:
>On Tue, Sep 6, 2022 at 5:05 AM Zopolis0 via Std-Proposals
><std-proposals_at_[hidden]> wrote:
>> I misread some of it, but does this part not help?
>> (i.e. being able to call export namespace {} without wrapping the file in it)
>> export namespace {} // error: does not introduce any namesnamespace has internal linkage
>In the new proposal, that's clearly an error. It crossed out the
>reason "does not introduce any names", but it provides a new reason:
>unnamed namespaces having internal linkage.
>Std-Proposals mailing list

Received on 2022-09-07 09:54:50