Revert "libcamera: Use helper variable template for type traits"

Some applications may not be compliant with C++17 (Chromium, as an
example). Keep the C++17 features for libcamera internals, and C++14
compliance for public API.

This reverts commit 6cbdc28599.

Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Jean-Michel Hautbois
2021-01-26 14:04:15 +01:00
committed by Laurent Pinchart
parent 33bfe7b7ef
commit c763ae023d
5 changed files with 34 additions and 34 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ public:
}
virtual ~BoundMethodBase() = default;
template<typename T, typename std::enable_if_t<!std::is_same_v<Object, T>> * = nullptr>
template<typename T, typename std::enable_if_t<!std::is_same<Object, T>::value> * = nullptr>
bool match(T *obj) { return obj == obj_; }
bool match(Object *object) { return object == object_; }