Merge pull request #8329 from paul-szczepanek-arm/fix-namespace

Platform: fix missing namespace for SharedPtr
pull/8614/head
Cruz Monrreal 2018-10-31 12:35:25 -05:00 committed by GitHub
commit b35799dd8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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__