Date: Wed, 16 Feb 2022 22:42:27 +0300
The p. # 7 in the section « 10.1 Module units and purviews» says if it
(7.1.2) — is a namespace-definition with external linkage,
it is attached to the global module.
So if you have
export module A;
namespace N1
{
int x;
}
or
export module A;
export namespace N1
{
int x;
}
when is the namespace definition N1 attached to the global module (because it has external linkage) or to the purview of the module A?
You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or http://ru.stackoverflow.com
(7.1.2) — is a namespace-definition with external linkage,
it is attached to the global module.
So if you have
export module A;
namespace N1
{
int x;
}
or
export module A;
export namespace N1
{
int x;
}
when is the namespace definition N1 attached to the global module (because it has external linkage) or to the purview of the module A?
You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or http://ru.stackoverflow.com
Received on 2022-02-16 19:42:50