mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #8329 from paul-szczepanek-arm/fix-namespace
Platform: fix missing namespace for SharedPtrpull/8614/head
commit
b35799dd8c
|
@ -24,6 +24,8 @@
|
|||
|
||||
#include "platform/mbed_critical.h"
|
||||
|
||||
namespace mbed {
|
||||
|
||||
/** Shared pointer class.
|
||||
*
|
||||
* A shared pointer is a "smart" pointer that retains ownership of an object using
|
||||
|
@ -285,4 +287,10 @@ bool operator!= (U lhs, const SharedPtr<T> &rhs)
|
|||
return ((T *) lhs != rhs.get());
|
||||
}
|
||||
|
||||
} /* namespace mbed */
|
||||
|
||||
#ifndef MBED_NO_GLOBAL_USING_DIRECTIVE
|
||||
using mbed::SharedPtr;
|
||||
#endif
|
||||
|
||||
#endif // __SHAREDPTR_H__
|
||||
|
|
Loading…
Reference in New Issue