mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 01:33:35 +08:00
First stab at fixing #55
This commit is contained in:
@@ -91,6 +91,21 @@ struct UAVCAN_EXPORT Select<false, TrueType, FalseType>
|
||||
typedef FalseType Result;
|
||||
};
|
||||
|
||||
/**
|
||||
* Checks if two identifiers refer to the same type.
|
||||
*/
|
||||
template<class T, class U>
|
||||
struct IsSameType
|
||||
{
|
||||
enum { Result = 0 };
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct IsSameType<T, T>
|
||||
{
|
||||
enum { Result = 1 };
|
||||
};
|
||||
|
||||
/**
|
||||
* Remove reference as in <type_traits>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user