C++ Logo

std-proposals

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:57:17 +0100
Disregard this...

On 7 September 2022 10:54:46 BST, "Lénárd Szolnoki via Std-Proposals" <std-proposals_at_[hidden]> wrote:
>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
>>Std-Proposals_at_[hidden]
>>https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals

Received on 2022-09-07 09:57:21