diff --git a/platform/SharedPtr.h b/platform/SharedPtr.h index d6bbac8138..ffa702a45a 100644 --- a/platform/SharedPtr.h +++ b/platform/SharedPtr.h @@ -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 &rhs) return ((T *) lhs != rhs.get()); } +} /* namespace mbed */ + +#ifndef MBED_NO_GLOBAL_USING_DIRECTIVE +using mbed::SharedPtr; +#endif + #endif // __SHAREDPTR_H__