lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 1ee61e40 1/4: Default all special members for


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 1ee61e40 1/4: Default all special members for a class with no data members
Date: Tue, 12 Jul 2022 17:53:10 -0400 (EDT)

branch: master
commit 1ee61e4073fb3410c4dc790f85dda526b6ef1bce
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Default all special members for a class with no data members
---
 any_entity.hpp | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/any_entity.hpp b/any_entity.hpp
index d1b1e4a2..f451a6e1 100644
--- a/any_entity.hpp
+++ b/any_entity.hpp
@@ -31,8 +31,6 @@
 /// Abstract class any_entity specifies the interface required for
 /// entities in the MVC Model. Class any_member is derived from this
 /// class, but other implementations may be substituted.
-///
-/// Implicitly-declared special member functions do the right thing.
 
 class any_entity
 {
@@ -40,9 +38,9 @@ class any_entity
     any_entity() = default;
 
     any_entity(any_entity const&) = default;
-    any_entity(any_entity&&) = delete;
-    any_entity& operator=(any_entity const&) = delete;
-    any_entity& operator=(any_entity&&) = delete;
+    any_entity(any_entity&&) = default;
+    any_entity& operator=(any_entity const&) = default;
+    any_entity& operator=(any_entity&&) = default;
     virtual ~any_entity() = default;
 
     any_entity& operator=(std::string const& s) {return assign(s);}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]