First stab at fixing #55

This commit is contained in:
Pavel Kirienko
2015-08-15 13:15:44 +03:00
parent f3931f7fc5
commit e32dfafbae
2 changed files with 24 additions and 2 deletions
@@ -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>
*/