
Envoyé par
Le standard 3.2/5
in each definition of D, corresponding names, looked up according to 3.4, shall refer to an entity defined within the definition of D, or shall refer to the same entity
[...]
If D is a template, and is defined in more than one translation unit, then the last four requirements from the list above shall apply to names from the template’s enclosing scope used in the template definition (14.6.3)
[...]
If the definitions of D do not satisfy these requirements, then the behavior is undefined.
Partager