[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&);
- [lmi-commits] [lmi] master updated (b05b682 -> 638d421), Greg Chicares, 2017/03/06
- [lmi-commits] [lmi] master 6234aec 2/6: Replace copy functions with explicitly-defaulted equivalents, Greg Chicares, 2017/03/06
- [lmi-commits] [lmi] master c6035b5 1/6: Write explicitly-defaulted [cd]tors inline, in class defn,
Greg Chicares <=
- [lmi-commits] [lmi] master 5c7028a 3/6: Write explicitly-defaulted [cd]tor inline, in class defn, Greg Chicares, 2017/03/06
- [lmi-commits] [lmi] master 638d421 6/6: Prefer explicitly-defaulted to user-written default ctor, Greg Chicares, 2017/03/06
- [lmi-commits] [lmi] master c123152 5/6: Replace typedefs with alias-declarations, Greg Chicares, 2017/03/06
- [lmi-commits] [lmi] master c025291 4/6: Write explicitly-defaulted dtor inline, in class defn, Greg Chicares, 2017/03/06