-
Notifications
You must be signed in to change notification settings - Fork 3k
Platform: fix missing namespace for SharedPtr #8329
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
Conversation
@deepikabhavnani should this be cherry pick there or ? |
Yes cherry pick will be good option, but will have to wait for header file fixes first |
What is the preceding PR from the earlier referenced PR? |
This is clear to proceed! |
@@ -285,4 +287,8 @@ bool operator!= (U lhs, const SharedPtr<T> &rhs) | |||
return ((T *) lhs != rhs.get()); | |||
} | |||
|
|||
} /* namespace mbed */ | |||
|
|||
using mbed::SharedPtr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Along with addition of namespace and backward compatibility, we need to make sure we do not corrupt the global namespace hence a small change needed:
using
should be under #ifndef MBED_NO_GLOBAL_USING_DIRECTIVE
macro.
https://github.com/ARMmbed/mbed-os/pull/7760/files#diff-3716425795ebc1692d5a64771fa4f35eR169
using directive is now wrapped in the macro, can you sign off the reivew please @deepikabhavnani |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backward compatible
/morph build |
Build : SUCCESSBuild number : 3504 Triggering tests/morph test |
Test : FAILUREBuild number : 3290 |
Exporter Build : FAILUREBuild number : 3121 |
IAR network license issues.
Aaaand finally, I don't think the lone test failue was due to the PR... |
This looks like it's on master and appears seldomly these days. @mprse Can you please review |
Exporter Build : ABORTEDBuild number : 3123 |
/morph test |
Exporter Build : SUCCESSBuild number : 3132 |
Test : SUCCESSBuild number : 3299 |
Description
Add missing mbed namespace to class. We avoid making a breaking change with the "using".
Pull request type