8000 mbed.h - Move to explicit using statements per class by geky · Pull Request #2661 · ARMmbed/mbed-os · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mbed.h - Move to explicit using statements per class #2661

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

Closed
wants to merge 1 commit into from

Conversation

geky
Copy link
Contributor
@geky geky commented Sep 10, 2016

This avoids revealing the entire mbed namespace, allowing less-unique names to be used behind the mbed namespace. Additionally this adds an extra step to introducing new names into the global namespace which will hopefully avoid name polution in the future.

should fix #2653
cc @sg-, @bridadan, @tommikas

This avoids revealing the entire mbed namespace, allowing less-unique
names to be used behind the mbed namespace. Additionally this adds an
extra step to introducing new names into the global namespace.
@sg-
Copy link
Contributor
sg- commented Sep 10, 2016

I don't like this solution. Forcing the use of mbed:: for certain classes/utilities isn't a solution. Its already polluted, accept it and consider it a protection we don't have. I'd prefer that was the mindset as well for new APIs etc...

There is too much potentially not exposed by this that previously was which breaks forcing them to add using namespace mbed (same problem exists) or mbed:: (even worse)

Haven't looked at the results but CI seems to agree.

@geky
Copy link
Contributor Author
geky commented Sep 12, 2016

This patch looks like would require a bit more work to track down the names that need to be exposed, but it could provide a general solution for avoiding new namespace polution.

A put up a more short-term patch as an alternative over here: #2663

@geky
Copy link
Contributor Author
geky commented Sep 12, 2016

Closing: not planning on looking more into this

Feel free to takeover if anyone wants to consider this idea

@geky geky closed this Sep 12, 2016
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.

FEATURE_COMMON_PAL doesn't compile in master
2 participants
0