-
Notifications
You must be signed in to change notification settings - Fork 38
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
header pollution #38
Comments
Agreed, |
Note if you missed: |
There's |
This is
|
Mentioned above.
These are already in a
These are mandated members of |
Looks like there is nothing more then. |
span/include/tcb/span.hpp
Lines 133 to 137 in 5d8d366
The implementation has some usings that put reduced names in enclosing namespace scope. If a user
#define
sTCB_SPAN_NAMESPACE_NAME
to their own, this can have undesired consequences.A different solution that avoids header pollution - to not define namespace name and use an alias like
mylib::span = tcb::span
does not really work because there is more than just a span class template, including non-member functions that are rather complex to alias.I propose to move these usings to some internal namespace, eg
TCB_SPAN_NAMESPACE_NAME::detail
.The text was updated successfully, but these errors were encountered: