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

Use unnamed namespace instead of static #32

Merged

Conversation

Lai-YT
Copy link
Collaborator

@Lai-YT Lai-YT commented Sep 11, 2023

Unnamed namespaces are more versatile in modern C++, as they support even class declarations.
For in-depth information, please consult the following resource: Unnamed/anonymous namespaces vs. static functions

Unnamed namespaces are more versatile in modern C++, as they support even
class declarations.
For in-depth information, please consult the following resource:
https://stackoverflow.com/questions/154469/unnamed-anonymous-namespaces-vs-static-functions
@Lai-YT Lai-YT requested a review from leewei05 September 11, 2023 09:25
@Lai-YT Lai-YT self-assigned this Sep 11, 2023
Copy link
Contributor

@leewei05 leewei05 left a comment

Choose a reason for hiding this comment

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

LGTM!

@leewei05 leewei05 merged commit e23df98 into fruits-lab:main Sep 12, 2023
2 checks passed
@Lai-YT Lai-YT deleted the use-anonymous-namespace-instead-of-static branch September 15, 2023 06:52
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.

2 participants