Skip to content

Commit b35799d

Browse files
author
Cruz Monrreal
authored
Merge pull request #8329 from paul-szczepanek-arm/fix-namespace
Platform: fix missing namespace for SharedPtr
2 parents 56293af + e4f3768 commit b35799d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

platform/SharedPtr.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
#include "platform/mbed_critical.h"
2626

27+
namespace mbed {
28+
2729
/** Shared pointer class.
2830
*
2931
* 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)
285287
return ((T *) lhs != rhs.get());
286288
}
287289

290+
} /* namespace mbed */
291+
292+
#ifndef MBED_NO_GLOBAL_USING_DIRECTIVE
293+
using mbed::SharedPtr;
294+
#endif
295+
288296
#endif // __SHAREDPTR_H__

0 commit comments

Comments
 (0)