summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2021-03-14 17:23:52 +0100
committerPatrick Ohly <patrick.ohly@intel.com>2021-03-21 06:57:47 -0700
commit6fc5f4703b72eaa9eafead35b0e462020dde6d93 (patch)
treea5907e326c189019a01c3d45aeafeec47ae65d40
parent9b7a9ed7ef135fec7fbdb03b394b921e26a689c2 (diff)
Revert "C++: instantiate some templates once in libsyncevolution"
This reverts commit 7d527c6dd8d55b0c8a7d001d5ae71627f38b1beb. It causes link errors on Fedora, see https://bugzilla.redhat.com/show_bug.cgi?id=1926932 This might be a compiler bug, but as this is a not particular important size optimization, removing it is the easiest fix. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
-rw-r--r--src/syncevo/util.cpp4
-rw-r--r--src/syncevo/util.h9
2 files changed, 0 insertions, 13 deletions
diff --git a/src/syncevo/util.cpp b/src/syncevo/util.cpp
index 99e8d0d1..3536174b 100644
--- a/src/syncevo/util.cpp
+++ b/src/syncevo/util.cpp
@@ -64,10 +64,6 @@
CPPUNIT_REGISTRY_ADD_TO_DEFAULT("SyncEvolution");
#endif
-template class std::basic_string<char>; // std::string
-template class std::vector<std::string>;
-template class std::list<std::string>;
-
#include <syncevo/declarations.h>
SE_BEGIN_CXX
diff --git a/src/syncevo/util.h b/src/syncevo/util.h
index 28f69813..91cce685 100644
--- a/src/syncevo/util.h
+++ b/src/syncevo/util.h
@@ -42,15 +42,6 @@
// include it to avoid changing code using the time things
#include <syncevo/Exception.h> // same for Exception and SE_THROW*
-extern template class std::basic_string<char>; // std::string
-extern template class std::vector<std::string>;
-extern template class std::list<std::string>;
-
-// Does not work:
-// undefined reference to `std::pair<...>::pair(...)'
-// extern template struct std::pair<std::string, std::string>;
-// extern template class std::map<std::string, std::string>;
-
#include <syncevo/declarations.h>
SE_BEGIN_CXX