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: avoid using namespace #322

Merged
merged 1 commit into from
Jun 3, 2022
Merged

fix: avoid using namespace #322

merged 1 commit into from
Jun 3, 2022

Conversation

henryiii
Copy link
Member

@henryiii henryiii commented Jun 3, 2022

This removes the abominable practice of using namespace std. Besides adding confusion, hindering readability, and being an antipattern, this was breaking GooFit's ability to compile in C++17 mode, since making std::data into data conflicts with variables named data, causing ambiguous expressions.

We still have a problem with fmt using things deprecated in C++17 that would be solved by updating fmt, but that needs a newer CUDA, which will be in a future PR.

style: pre-commit fixes

fix: avoid using namespace
@henryiii henryiii merged commit 0e8911f into master Jun 3, 2022
@henryiii henryiii deleted the henryiii/chore/cleanup branch June 3, 2022 15:58
henryiii added a commit that referenced this pull request Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant