Browse Source

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

master
Andrew Tridgell 9 years ago committed by Lucas De Marchi
parent
commit
29100937bc
  1. 2
      libraries/AP_Common/missing/cstddef

2
libraries/AP_Common/missing/cstddef

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

Loading…
Cancel
Save