remove a custom implementation of std::enable_if

This commit is contained in:
Krystian Kuzniarek
2019-08-13 23:35:11 +02:00
parent 90a443f9c2
commit 11471da793
3 changed files with 8 additions and 13 deletions

View File

@@ -991,13 +991,6 @@ struct IsRecursiveContainerImpl<C, true> {
template <typename C>
struct IsRecursiveContainer : public IsRecursiveContainerImpl<C>::type {};
// EnableIf<condition>::type is void when 'Cond' is true, and
// undefined when 'Cond' is false. To use SFINAE to make a function
// overload only apply when a particular expression is true, add
// "typename EnableIf<expression>::type* = 0" as the last parameter.
template<bool> struct EnableIf;
template<> struct EnableIf<true> { typedef void type; }; // NOLINT
// Utilities for native arrays.
// ArrayEq() compares two k-dimensional native arrays using the