Skip to content

Remove using namespace std; from header #7

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mloskot
Copy link

@mloskot mloskot commented Aug 6, 2020

The C++ has long agreed that placing using namespace, especially using namespace std;, in a public header of a library is a bad practice.

This fixes compilation on platforms where ::byte and std::byte types or type aliases can clash due to the using directive importing std namespace in header.

An obvious clean-up but also fix to avoid Windows API ambiguities (e.g. byte vs std::byte)
@drabaioli
Copy link

Definitely a good PR... Unfortunately I think this repo is not active anymore :(

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