[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master aac950ae 3/4: Move semantics, vacant
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master aac950ae 3/4: Move semantics, vacant |
Date: |
Wed, 10 Aug 2022 10:53:48 -0400 (EDT) |
branch: master
commit aac950aeac26c07e729345ace7bf93370670b8da
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Move semantics, vacant
'smf*.?pp' is just a minimally adapted replica of 'archetype*.?pp'.
There's no apparent need for any 'smf.cpp' file.
---
Makefile.am | 8 ++++++++
objects.make | 5 +++++
smf.hpp | 27 +++++++++++++++++++++++++++
smf_test.cpp | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 88 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 1b97c9ca..5f16df34 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -161,6 +161,7 @@ TESTS = \
rtti_lmi_test \
safely_dereference_as_test \
sandbox_test \
+ smf_test \
snprintf_test \
ssize_lmi_test \
stratified_algorithms_test \
@@ -1085,6 +1086,12 @@ safely_dereference_as_test_LDADD = \
sandbox_test_LDADD = \
libtest_common.la
+smf_test_SOURCES = \
+ smf_test.cpp
+smf_test_CXXFLAGS = $(AM_CXXFLAGS)
+smf_test_LDADD = \
+ libtest_common.la
+
snprintf_test_LDADD =\
libtest_common.la
@@ -1335,6 +1342,7 @@ noinst_HEADERS = \
single_cell_document.hpp \
single_choice_popup_menu.hpp \
skeleton.hpp \
+ smf.hpp \
so_attributes.hpp \
ssize_lmi.hpp \
stratified_algorithms.hpp \
diff --git a/objects.make b/objects.make
index 50d45a52..0a4caa1b 100644
--- a/objects.make
+++ b/objects.make
@@ -434,6 +434,7 @@ unit_test_targets := \
rtti_lmi_test \
safely_dereference_as_test \
sandbox_test \
+ smf_test \
snprintf_test \
ssize_lmi_test \
stratified_algorithms_test \
@@ -1035,6 +1036,10 @@ sandbox_test$(EXEEXT): \
$(common_test_objects) \
sandbox_test.o \
+smf_test$(EXEEXT): \
+ $(common_test_objects) \
+ smf_test.o \
+
snprintf_test$(EXEEXT): \
$(common_test_objects) \
snprintf_test.o \
diff --git a/smf.hpp b/smf.hpp
new file mode 100644
index 00000000..a3282fe8
--- /dev/null
+++ b/smf.hpp
@@ -0,0 +1,27 @@
+// Special member functions (SMFs) and move semantics.
+//
+// Copyright (C) 2022 Gregory W. Chicares.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License version 2 as
+// published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software Foundation,
+// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+//
+// https://savannah.nongnu.org/projects/lmi
+// email: <gchicares@sbcglobal.net>
+// snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+
+#ifndef smf_hpp
+#define smf_hpp
+
+#include "config.hpp"
+
+#endif // smf_hpp
diff --git a/smf_test.cpp b/smf_test.cpp
new file mode 100644
index 00000000..7517d7dd
--- /dev/null
+++ b/smf_test.cpp
@@ -0,0 +1,48 @@
+// Special member functions (SMFs) and move semantics--unit test.
+//
+// Copyright (C) 2022 Gregory W. Chicares.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License version 2 as
+// published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software Foundation,
+// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+//
+// https://savannah.nongnu.org/projects/lmi
+// email: <gchicares@sbcglobal.net>
+// snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+
+#include "pchfile.hpp"
+
+#include "smf.hpp"
+
+#include "test_tools.hpp"
+
+class smf_test
+{
+ public:
+ static void test()
+ {
+ test_something();
+ }
+
+ private:
+ static void test_something();
+};
+
+void smf_test::test_something()
+{
+}
+
+int test_main(int, char*[])
+{
+ smf_test::test();
+ return EXIT_SUCCESS;
+}
- [lmi-commits] [lmi] master updated (5e7c2fa5 -> 60b29957), Greg Chicares, 2022/08/10
- [lmi-commits] [lmi] master 60b29957 4/4: Move semantics, nascent, Greg Chicares, 2022/08/10
- [lmi-commits] [lmi] master aac950ae 3/4: Move semantics, vacant,
Greg Chicares <=
- [lmi-commits] [lmi] master 7067c2a3 2/4: Add a {.hpp, .cpp, _test.cpp} archetype, Greg Chicares, 2022/08/10
- [lmi-commits] [lmi] master ff144846 1/4: Suppress print-preview and page-setup commands, Greg Chicares, 2022/08/10