From d8c8d00a4b24cf14fc2ccda114ce75c07b4fdb1d Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 8 May 2019 10:33:09 +1000 Subject: [PATCH] strongdef: add move constructor and assignment operators --- strongdef.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/strongdef.hpp b/strongdef.hpp index 2a0903e2..17db6329 100644 --- a/strongdef.hpp +++ b/strongdef.hpp @@ -31,9 +31,11 @@ namespace cruft::strongdef { constexpr explicit index (cruft::types::identity_t const &_data): data (_data) { ; } constexpr index (index const&) = default; + constexpr index (index &&) = default; index& operator= (T const &) = delete; index& operator= (index const &) = default; + index& operator= (index &&) = default; // conversion operators must not be explicit or it defeats the point // of this class (ease of use, transparency).