lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master c6035b5 1/6: Write explicitly-defaulted [cd]t


From: Greg Chicares
Subject: [lmi-commits] [lmi] master c6035b5 1/6: Write explicitly-defaulted [cd]tors inline, in class defn
Date: Mon, 6 Mar 2017 19:46:57 -0500 (EST)

branch: master
commit c6035b5a28e8bfd27de1771c8a2bfe1f18f4aef1
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Write explicitly-defaulted [cd]tors inline, in class defn
---
 antediluvian_stubs.cpp | 4 ----
 product_data.cpp       | 4 ----
 product_data.hpp       | 4 ++--
 3 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/antediluvian_stubs.cpp b/antediluvian_stubs.cpp
index 70e05d2..fc10ab3 100644
--- a/antediluvian_stubs.cpp
+++ b/antediluvian_stubs.cpp
@@ -37,10 +37,6 @@ namespace
 void authenticate_system()
 {}
 
-glossed_string::glossed_string() = default;
-
-glossed_string::~glossed_string() = default;
-
 bool is_antediluvian_fork()
 {
     return true;
diff --git a/product_data.cpp b/product_data.cpp
index 964e7bf..7f8a3a0 100644
--- a/product_data.cpp
+++ b/product_data.cpp
@@ -88,8 +88,6 @@ template<> glossed_string 
value_cast<glossed_string>(std::string const& z)
     return glossed_string(z);
 }
 
-glossed_string::glossed_string() = default;
-
 glossed_string::glossed_string
     (std::string const& datum
     ,std::string const& gloss
@@ -98,8 +96,6 @@ glossed_string::glossed_string
     ,gloss_(gloss)
 {}
 
-glossed_string::~glossed_string() = default;
-
 glossed_string& glossed_string::operator=(std::string const& s)
 {
     datum_ = s;
diff --git a/product_data.hpp b/product_data.hpp
index f9bbe31..1889a08 100644
--- a/product_data.hpp
+++ b/product_data.hpp
@@ -43,12 +43,12 @@ class glossed_string final
     friend class PolicyDocument;
 
   public:
-    glossed_string();
+    glossed_string() = default;
     explicit glossed_string
         (std::string const& datum
         ,std::string const& gloss = std::string()
         );
-    ~glossed_string();
+    ~glossed_string() = default;
 
     glossed_string& operator=(std::string const&);
 



reply via email to

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