mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
AP_Common: allow for nullptr_t but not std::move replacement
This commit is contained in:
parent
52e36908ff
commit
29100937bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user