-
Notifications
You must be signed in to change notification settings - Fork 3k
FEATURE_COMMON_PAL doesn't compile in master #2653
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
Comments
Hi @tommikas, unfortunately the callback name conflicts with the recently added |
do we get fix for this? We doesn't want to create workarounds for this.. |
The general expansion of the mbed namespace could be changed to a specific set of classes (aka all of the classes currently exposed), omitting the callback function. I can look into making a pr, although I don't know if it's too late to remove the callback function from the general namespace. @pan-, @0xc0170, thoughts? Explicit using statements would give us better control of what is exposed. It would be better to eliminate the mbed namespace expansion, but I don't know a path forward without breaking everything. |
Potentially crazy idea, but what if we moved all of the important includes into a file called |
Please revert the related PR. Mbed Client applications are broken now. |
this is not a solution. We propose people use mbed.h as an entry point. Seems a better name would have been mbed_callback? Reverting. edit: err 💥 cant revert since too much else relies on this. Just need to fix it and ASAP! |
#2661 provides a solution based on my previous proposal: (#2653 (comment)) Moves @bridadan, We'd really want to avoid this form of name polution even in the user-space. Maybe ultimately adding an mbed-os.h that drops the namespace expansion is the best way to go? |
Don't think this is an option, that ship has sailed as they say way long ago.
Forget that namespace exists and I think the answer will become more clear. |
Fair enough
If I forgot the namespace exists, I would have suggested adding it ; ) |
Alternative patch: #2663 |
@bridadan Users can already pick up the files they need. What are the benefits of including everything ? @geky |
@pan- The benefit is that's how mbed applications have worked in the past, so this wouldn't be a breaking change. But if user's needed to have more control over namespaces then they could always include the |
ARM Internal Ref: IOTMORF-460 |
To be C++ standard-ish, Alternatively, put the using directives into an #ifndef, so the user can do |
Those are good thoughts. Does any other library do this: |
@tommikas is this resolved? |
Yes. Closing. |
Since #2496 was merged in, it looks like.
The text was updated successfully, but these errors were encountered: