ardupilot/libraries/AP_Common/missing/utility
Lucas De Marchi d80a0e47bc AP_Common: missing: move definitions to standard headers
This way we don't create problems regarding which header to include: we
just include the normal/c++11 headers and everything works as it should.
2016-02-16 19:49:09 -02:00

17 lines
309 B
Plaintext

#pragma once
#include_next <utility>
#if defined(HAVE_STD_MOVE) && !HAVE_STD_MOVE
#include <type_traits>
namespace std {
template<class T>
typename std::remove_reference<T>::type&& move(T&& t) noexcept
{
return static_cast<typename std::remove_reference<T>::type&&>(t);
}
}
#endif