Browse Source

GL: keeping copy but deleting a move is ... just wrong.

I blame my 2013 self who didn't have so clear idea about move semantics
yet.
pull/430/head
Vladimír Vondruš 6 years ago
parent
commit
9bb590280a
  1. 12
      src/Magnum/GL/MeshView.h

12
src/Magnum/GL/MeshView.h

@ -99,18 +99,6 @@ class MAGNUM_GL_EXPORT MeshView {
*/
explicit MeshView(Mesh& original);
/** @brief Copy constructor */
MeshView(const MeshView& other) = default;
/** @brief Movement is not allowed */
MeshView(MeshView&& other) = delete;
/** @brief Copy assignment */
MeshView& operator=(const MeshView&) = default;
/** @brief Movement is not allowed */
MeshView& operator=(MeshView&& other) = delete;
/** @brief Original mesh */
Mesh& mesh() { return _original; }
const Mesh& mesh() const { return _original; } /**< @overload */

Loading…
Cancel
Save