Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix namespace pollution from std and o2::constants #3423

Merged
merged 9 commits into from
Sep 6, 2023

Conversation

vkucera
Copy link
Collaborator

@vkucera vkucera commented Sep 1, 2023

Remove using directives in headers polluting the namespace with names from std and o2::constants.

@@ -31,6 +31,7 @@
//
// base namespaces
using namespace o2;
using namespace o2::constants::math;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Vit, thanks a lot! Just for me to understand, is this now needed because of a change in the includes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @njacazio , yes, this one in particular is a fix of pollution from Framework/AnalysisDataModel.h (see https://github.com/AliceO2Group/AliceO2/pull/11851/files#diff-6410cfe670c62cda55ab26854e52f05a3b75d325cb663e7852d79df3d4bad58e).

@vkucera vkucera enabled auto-merge (squash) September 5, 2023 08:17
@vkucera vkucera disabled auto-merge September 5, 2023 09:58
@vkucera vkucera enabled auto-merge (squash) September 5, 2023 09:58
@vkucera vkucera disabled auto-merge September 6, 2023 13:35
@vkucera vkucera enabled auto-merge (squash) September 6, 2023 13:36
Copy link
Collaborator

@alibuild alibuild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approving on behalf of @vkucera.

@vkucera vkucera merged commit d31f6d7 into AliceO2Group:master Sep 6, 2023
@vkucera vkucera deleted the std branch September 6, 2023 13:36
hahassan7 pushed a commit to hahassan7/O2Physics that referenced this pull request Oct 6, 2023
hahassan7 pushed a commit to hahassan7/O2Physics that referenced this pull request Oct 7, 2023
samrangy pushed a commit to samrangy/O2Physics that referenced this pull request Oct 11, 2023
zconesa pushed a commit to zconesa/O2Physics that referenced this pull request Oct 27, 2023
chengtt0406 pushed a commit to chengtt0406/O2Physics that referenced this pull request Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

7 participants