From 737e92bc3eacd09ba506347cceed9714e7629163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 21 Aug 2016 23:06:32 +0200 Subject: [PATCH] Math: remove unnecessary assignment operators. Caused problems when specifying `noexcept` in classes with members from Math namespace. --- src/Magnum/Math/BoolVector.h | 3 --- src/Magnum/Math/RectangularMatrix.h | 3 --- src/Magnum/Math/Vector.h | 8 -------- 3 files changed, 14 deletions(-) diff --git a/src/Magnum/Math/BoolVector.h b/src/Magnum/Math/BoolVector.h index 87df34d18..46cbf6ccc 100644 --- a/src/Magnum/Math/BoolVector.h +++ b/src/Magnum/Math/BoolVector.h @@ -106,9 +106,6 @@ template class BoolVector { /** @brief Copy constructor */ constexpr BoolVector(const BoolVector&) = default; - /** @brief Copy assignment */ - BoolVector& operator=(const BoolVector&) = default; - /** * @brief Raw data * @return Array of DataSize length diff --git a/src/Magnum/Math/RectangularMatrix.h b/src/Magnum/Math/RectangularMatrix.h index 1a05db7ac..9e9d6a594 100644 --- a/src/Magnum/Math/RectangularMatrix.h +++ b/src/Magnum/Math/RectangularMatrix.h @@ -155,9 +155,6 @@ template class RectangularMatrix { /** @brief Copy constructor */ constexpr RectangularMatrix(const RectangularMatrix&) = default; - /** @brief Assignment operator */ - RectangularMatrix& operator=(const RectangularMatrix&) = default; - /** @brief Convert matrix to external representation */ template::to(std::declval>()))> constexpr explicit operator U() const { return Implementation::RectangularMatrixConverter::to(*this); diff --git a/src/Magnum/Math/Vector.h b/src/Magnum/Math/Vector.h index fb3ffe7db..3755feba7 100644 --- a/src/Magnum/Math/Vector.h +++ b/src/Magnum/Math/Vector.h @@ -217,9 +217,6 @@ template class Vector { /** @brief Copy constructor */ constexpr Vector(const Vector&) = default; - /** @brief Assignment operator */ - Vector& operator=(const Vector&) = default; - /** @brief Convert vector to external representation */ template::to(std::declval>()))> constexpr explicit operator U() const { return Implementation::VectorConverter::to(*this); @@ -1117,11 +1114,6 @@ extern template MAGNUM_EXPORT Corrade::Utility::Debug& operator<<(Corrade::Utili return Math::Vector::pad(a, value); \ } \ \ - Type& operator=(const Type& other) { \ - Math::Vector::operator=(other); \ - return *this; \ - } \ - \ Type operator-() const { \ return Math::Vector::operator-(); \ } \