Infinite Loop when calling a mock function that takes boost::filesystem::path as parameter #521: Add is_same type trait and prevent infinite loops for recursive containers

This commit is contained in:
drgler
2017-08-09 19:07:22 +02:00
parent 4bab34d208
commit 71ca4bae10
3 changed files with 42 additions and 8 deletions

View File

@@ -2241,6 +2241,12 @@ template <bool bool_value> const bool bool_constant<bool_value>::value;
typedef bool_constant<false> false_type;
typedef bool_constant<true> true_type;
template <typename T, typename U>
struct is_same : public false_type {};
template <typename T>
struct is_same<T, T> : public true_type {};
template <typename T>
struct is_pointer : public false_type {};