[test][components] Use constexpr and is_detected
Compare changes
+ 118
− 143
@@ -28,7 +28,9 @@
@@ -80,20 +82,23 @@ struct AlwaysFalse<DisableStaticAssert> : public std::true_type {};
@@ -123,176 +128,146 @@ void plot(Functor&& f,
Fixes #1208 (closed)
This should make it easier for cppcheck (although this was a false positive) but it also makes the code more readable and shorter.