Skip to content

Avoid using-directives in the global scope in headers #3326

Open
@vkucera

Description

@vkucera

Using-directives should never appear in the global scope in headers because they irreversibly pollute the global namespace wherever they are included and can lead to unexpected behaviour, such as name conflicts. See O2 CodingGuidelines, C++ Core Guidelines.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions