From d6017ad8cc13a15a13100ef8dd420c293643acad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 21 Oct 2018 19:33:00 +0200 Subject: [PATCH] Math: fixed enable_if for one-dimensional Range-from-pair constructor. This shouldn't have worked like this. Apparently it works even after this. Huh. --- src/Magnum/Math/Range.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Math/Range.h b/src/Magnum/Math/Range.h index 7f119c56b..367a12870 100644 --- a/src/Magnum/Math/Range.h +++ b/src/Magnum/Math/Range.h @@ -114,7 +114,7 @@ template class Range { /** @overload */ /** @todo std::pair constructors are not constexpr in C++11, make it so in C++14 */ #ifndef DOXYGEN_GENERATING_OUTPUT - template> + template::type> #endif /*implicit*/ Range(const std::pair, Vector>& minmax) noexcept: _min{minmax.first}, _max{minmax.second} {}