From a37ffd510c9fe01ce27aaa37d328f6c32518de17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 7 Jul 2013 11:37:58 +0200 Subject: [PATCH] GCC 4.4 compatibility: can't default this, again. --- src/Trade/MeshData2D.cpp | 3 ++- src/Trade/MeshData3D.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Trade/MeshData2D.cpp b/src/Trade/MeshData2D.cpp index 9732d72e2..d09f9d5bc 100644 --- a/src/Trade/MeshData2D.cpp +++ b/src/Trade/MeshData2D.cpp @@ -32,7 +32,8 @@ MeshData2D::MeshData2D(Mesh::Primitive primitive, std::vector indic CORRADE_ASSERT(!_positions.empty(), "Trade::MeshData2D: no position array specified", ); } -MeshData2D::MeshData2D(MeshData2D&&) = default; +/* GCC 4.4 doesn't like it defaulted */ +MeshData2D::MeshData2D(MeshData2D&& other): _primitive(other._primitive), _indices(std::move(other._indices)), _positions(std::move(other._positions)), _textureCoords2D(std::move(other._textureCoords2D)) {} MeshData2D::~MeshData2D() = default; diff --git a/src/Trade/MeshData3D.cpp b/src/Trade/MeshData3D.cpp index 9594bdef1..51cbb6b30 100644 --- a/src/Trade/MeshData3D.cpp +++ b/src/Trade/MeshData3D.cpp @@ -32,7 +32,8 @@ MeshData3D::MeshData3D(Mesh::Primitive primitive, std::vector indic CORRADE_ASSERT(!_positions.empty(), "Trade::MeshData3D: no position array specified", ); } -MeshData3D::MeshData3D(MeshData3D&&) = default; +/* GCC 4.4 doesn't like it defaulted */ +MeshData3D::MeshData3D(MeshData3D&& other): _primitive(other._primitive), _indices(std::move(other._indices)), _positions(std::move(other._positions)), _normals(std::move(other._normals)), _textureCoords2D(std::move(other._textureCoords2D)) {} MeshData3D::~MeshData3D() = default;