lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master f629a6cf 4/5: Remove comments that have becom


From: Greg Chicares
Subject: [lmi-commits] [lmi] master f629a6cf 4/5: Remove comments that have become untrue
Date: Mon, 11 Jul 2022 22:53:09 -0400 (EDT)

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

    Remove comments that have become untrue
    
    The dtor must be declared explicitly because it must be virtual.
    Declaring a dtor, even with "= default", prevents other special member
    functions from being declared implicitly. (Not yet, for copy functions,
    whose implicit declarations are only deprecated for now; but we're
    designing for the future, as if what is deprecated today had already
    been removed from the language.) Therefore, for them to be available
    at all, they must all be declared explicitly. The removed comment tells
    us that it is appropriate to default all of them; having done so, there
    is no longer any comment to be written.
---
 datum_base.hpp     | 2 --
 datum_boolean.hpp  | 2 --
 datum_sequence.hpp | 2 --
 datum_string.hpp   | 2 --
 4 files changed, 8 deletions(-)

diff --git a/datum_base.hpp b/datum_base.hpp
index 90582460..8bebc63f 100644
--- a/datum_base.hpp
+++ b/datum_base.hpp
@@ -28,8 +28,6 @@
 
 #include <iosfwd>
 
-// Implicitly-declared special member functions do the right thing.
-
 class LMI_SO datum_base
 {
   public:
diff --git a/datum_boolean.hpp b/datum_boolean.hpp
index b2cdabf1..802f676e 100644
--- a/datum_boolean.hpp
+++ b/datum_boolean.hpp
@@ -26,8 +26,6 @@
 
 #include "datum_base.hpp"
 
-// Implicitly-declared special member functions do the right thing.
-
 class datum_boolean
     :public datum_base
 {
diff --git a/datum_sequence.hpp b/datum_sequence.hpp
index d92a8c70..ede36608 100644
--- a/datum_sequence.hpp
+++ b/datum_sequence.hpp
@@ -60,8 +60,6 @@
 /// derived class, but aren't pure because that requirement is obvious
 /// and it's convenient to invoke them in assert_sanity() to validate
 /// ctor postconditions.
-///
-/// Implicitly-declared special member functions do the right thing.
 
 class datum_sequence
     :public datum_string
diff --git a/datum_string.hpp b/datum_string.hpp
index 3c08d2a8..68fc7188 100644
--- a/datum_string.hpp
+++ b/datum_string.hpp
@@ -30,8 +30,6 @@
 
 #include <string>
 
-// Implicitly-declared special member functions do the right thing.
-
 class datum_string
     :public datum_base
 {



reply via email to

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