From: Alex Coyte Date: Tue, 4 Apr 2017 05:43:57 +0000 (+1000) Subject: default the move special functions X-Git-Tag: v4.5.0^2~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7920b1086b4575eaf349b7656d39fe0ce7cb2422;p=thirdparty%2Fvectorscan.git default the move special functions --- diff --git a/src/util/noncopyable.h b/src/util/noncopyable.h index da3851a3..cd4f2e02 100644 --- a/src/util/noncopyable.h +++ b/src/util/noncopyable.h @@ -39,10 +39,10 @@ namespace ue2 { /** \brief Class that makes derived classes non-copyable. */ struct noncopyable { noncopyable() = default; - // Copy constructor. noncopyable(const noncopyable &) = delete; - // Copy-assignment operator. + noncopyable(noncopyable &&) = default; noncopyable &operator=(const noncopyable &) = delete; + noncopyable &operator=(noncopyable &&) = default; }; } // namespace ue2