AP_Common: allow for nullptr_t but not std::move replacement

This commit is contained in:
Andrew Tridgell 2016-02-16 21:39:40 +11:00 committed by Lucas De Marchi
parent 52e36908ff
commit 29100937bc

View File

@ -6,6 +6,7 @@
namespace std {
typedef decltype(nullptr) nullptr_t;
#if defined(HAVE_STD_MOVE) && !HAVE_STD_MOVE
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;};
@ -15,5 +16,6 @@ namespace std {
{
return static_cast<typename std::remove_reference<T>::type&&>(t);
}
#endif
}
#endif