lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master b05b682 5/5: Write explicitly-defaulted dtor


From: Greg Chicares
Subject: [lmi-commits] [lmi] master b05b682 5/5: Write explicitly-defaulted dtor outside class defn where necessary
Date: Mon, 6 Mar 2017 07:24:19 -0500 (EST)

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

    Write explicitly-defaulted dtor outside class defn where necessary
---
 gpt_input.cpp    |  6 ++++++
 ihs_irc7702.cpp  |  7 ++++++-
 input.cpp        |  6 ++++++
 mec_input.cpp    |  6 ++++++
 product_data.cpp |  6 ++++++
 xml_lmi.cpp      | 12 ++++++++++++
 6 files changed, 42 insertions(+), 1 deletion(-)

diff --git a/gpt_input.cpp b/gpt_input.cpp
index 57142b9..7023b2e 100644
--- a/gpt_input.cpp
+++ b/gpt_input.cpp
@@ -141,6 +141,12 @@ gpt_input::gpt_input(gpt_input const& z)
     DoAdaptExternalities();
 }
 
+/// Destructor.
+///
+/// Although it is explicitly defaulted, this destructor cannot be
+/// implemented inside the class definition, where a class type that
+/// it depends upon is incomplete.
+
 gpt_input::~gpt_input() = default;
 
 gpt_input& gpt_input::operator=(gpt_input const& z)
diff --git a/ihs_irc7702.cpp b/ihs_irc7702.cpp
index 4c9a257..e17df22 100644
--- a/ihs_irc7702.cpp
+++ b/ihs_irc7702.cpp
@@ -201,7 +201,12 @@ Irc7702::Irc7702
     Init();
 }
 
-//============================================================================
+/// Destructor.
+///
+/// Although it is explicitly defaulted, this destructor cannot be
+/// implemented inside the class definition, where a class type that
+/// it depends upon is incomplete.
+
 Irc7702::~Irc7702() = default;
 
 //============================================================================
diff --git a/input.cpp b/input.cpp
index 5990fca..080bf5d 100644
--- a/input.cpp
+++ b/input.cpp
@@ -246,6 +246,12 @@ Input::Input(Input const& z)
     DoAdaptExternalities();
 }
 
+/// Destructor.
+///
+/// Although it is explicitly defaulted, this destructor cannot be
+/// implemented inside the class definition, where a class type that
+/// it depends upon is incomplete.
+
 Input::~Input() = default;
 
 Input& Input::operator=(Input const& z)
diff --git a/mec_input.cpp b/mec_input.cpp
index 757ded3..004b8d4 100644
--- a/mec_input.cpp
+++ b/mec_input.cpp
@@ -131,6 +131,12 @@ mec_input::mec_input(mec_input const& z)
     DoAdaptExternalities();
 }
 
+/// Destructor.
+///
+/// Although it is explicitly defaulted, this destructor cannot be
+/// implemented inside the class definition, where a class type that
+/// it depends upon is incomplete.
+
 mec_input::~mec_input() = default;
 
 mec_input& mec_input::operator=(mec_input const& z)
diff --git a/product_data.cpp b/product_data.cpp
index baf7a5b..964e7bf 100644
--- a/product_data.cpp
+++ b/product_data.cpp
@@ -153,6 +153,12 @@ product_data::product_data(std::string const& product_name)
     load(AddDataDir(path.string()));
 }
 
+/// Destructor.
+///
+/// Although it is explicitly defaulted, this destructor cannot be
+/// implemented inside the class definition, where a class type that
+/// it depends upon is incomplete.
+
 product_data::~product_data() = default;
 
 /// Principal string datum (without gloss) for named member.
diff --git a/xml_lmi.cpp b/xml_lmi.cpp
index 31193c6..5964ada 100644
--- a/xml_lmi.cpp
+++ b/xml_lmi.cpp
@@ -128,6 +128,12 @@ xml_lmi::dom_parser::dom_parser(std::istream const& is)
         }
 }
 
+/// Destructor.
+///
+/// Although it is explicitly defaulted, this destructor cannot be
+/// implemented inside the class definition, where a class type that
+/// it depends upon is incomplete.
+///
 /// Throws: nothing unless member parser_'s destructor does.
 
 xml_lmi::dom_parser::~dom_parser() = default;
@@ -200,6 +206,12 @@ xml_lmi::xml_document::xml_document(std::string const& 
root_node_name)
 {
 }
 
+/// Destructor.
+///
+/// Although it is explicitly defaulted, this destructor cannot be
+/// implemented inside the class definition, where a class type that
+/// it depends upon is incomplete.
+
 xml_lmi::xml_document::~xml_document() = default;
 
 xml::element& xml_lmi::xml_document::root_node()



reply via email to

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