mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 06:53:34 +08:00
Using custom RemoveReference instead of relying on the standard library
This commit is contained in:
@@ -90,6 +90,15 @@ struct UAVCAN_EXPORT Select<false, TrueType, FalseType>
|
||||
typedef FalseType Result;
|
||||
};
|
||||
|
||||
/**
|
||||
* Remove reference as in <type_traits>
|
||||
*/
|
||||
template <class T> struct RemoveReference { typedef T Type; };
|
||||
template <class T> struct RemoveReference<T&> { typedef T Type; };
|
||||
#if UAVCAN_CPP_VERSION > UAVCAN_CPP03
|
||||
template <class T> struct RemoveReference<T&&> { typedef T Type; };
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Value types
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user