equal
deleted
inserted
replaced
81 /**************** dummy class to avoid ambiguity ****************/ |
81 /**************** dummy class to avoid ambiguity ****************/ |
82 |
82 |
83 template<int T> struct dummy { dummy(int) {} }; |
83 template<int T> struct dummy { dummy(int) {} }; |
84 |
84 |
85 /**************** enable_if from BOOST ****************/ |
85 /**************** enable_if from BOOST ****************/ |
|
86 |
|
87 template <typename Type, typename T = void> |
|
88 struct exists { |
|
89 typedef T type; |
|
90 }; |
|
91 |
86 |
92 |
87 template <bool B, class T = void> |
93 template <bool B, class T = void> |
88 struct enable_if_c { |
94 struct enable_if_c { |
89 typedef T type; |
95 typedef T type; |
90 }; |
96 }; |