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;