AP_Common: fixed std::move() for qurt build

Thanks Lucas!
This commit is contained in:
Andrew Tridgell 2016-02-16 14:18:57 +11:00 committed by Lucas De Marchi
parent cc4504e613
commit 52e36908ff
1 changed files with 10 additions and 0 deletions

View File

@ -5,5 +5,15 @@
#if defined(HAVE_NULLPTR_T) && !HAVE_NULLPTR_T
namespace std {
typedef decltype(nullptr) nullptr_t;
template< class T > struct remove_reference {typedef T type;};
template< class T > struct remove_reference<T&> {typedef T type;};
template< class T > struct remove_reference<T&&> {typedef T type;};
template< class T >
typename std::remove_reference<T>::type&& move(T&& t) noexcept
{
return static_cast<typename std::remove_reference<T>::type&&>(t);
}
}
#endif