C++ Logo


Advanced search

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

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Tue, 6 Sep 2022 09:47:34 -0400
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.

Received on 2022-09-06 13:48:08