From 8de3e91ce3a7a296514c0a4220fc9f427c33f5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 29 May 2020 20:56:50 +0200 Subject: [PATCH] python: fix build against latest Magnum. Not sure what the extra {}s were doing there. --- src/python/magnum/math.range.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/python/magnum/math.range.cpp b/src/python/magnum/math.range.cpp index d9ae3b4..87cf676 100644 --- a/src/python/magnum/math.range.cpp +++ b/src/python/magnum/math.range.cpp @@ -104,8 +104,8 @@ template void range2D(py::class_& c) { c /* Constructors */ .def(py::init([](const std::pair, std::tuple>& value) { - return T{{typename T::VectorType{std::get<0>(value.first), std::get<1>(value.first)}, - typename T::VectorType{std::get<0>(value.second), std::get<1>(value.second)}}}; + return T{typename T::VectorType{std::get<0>(value.first), std::get<1>(value.first)}, + typename T::VectorType{std::get<0>(value.second), std::get<1>(value.second)}}; }), "Construct a range from a pair of minimal and maximal coordinates") /* Properties */ @@ -176,8 +176,8 @@ template void range3D(py::class_& c) { c /* Constructors */ .def(py::init([](const std::pair, std::tuple>& value) { - return T{{typename T::VectorType{std::get<0>(value.first), std::get<1>(value.first), std::get<2>(value.first)}, - typename T::VectorType{std::get<0>(value.second), std::get<1>(value.second), std::get<2>(value.second)}}}; + return T{typename T::VectorType{std::get<0>(value.first), std::get<1>(value.first), std::get<2>(value.first)}, + typename T::VectorType{std::get<0>(value.second), std::get<1>(value.second), std::get<2>(value.second)}}; }), "Construct a range from a pair of minimal and maximal coordinates") /* Properties */