diff --git a/src/syncevo/util.cpp b/src/syncevo/util.cpp index cf11c7c6..86f9a8be 100644 --- a/src/syncevo/util.cpp +++ b/src/syncevo/util.cpp @@ -64,6 +64,10 @@ CPPUNIT_REGISTRY_ADD_TO_DEFAULT("SyncEvolution"); #endif +template class std::basic_string; // std::string +template class std::vector; +template class std::list; + #include SE_BEGIN_CXX diff --git a/src/syncevo/util.h b/src/syncevo/util.h index fb049944..d21ed1a1 100644 --- a/src/syncevo/util.h +++ b/src/syncevo/util.h @@ -42,6 +42,15 @@ // include it to avoid changing code using the time things #include // same for Exception and SE_THROW* +extern template class std::basic_string; // std::string +extern template class std::vector; +extern template class std::list; + +// Does not work: +// undefined reference to `std::pair<...>::pair(...)' +// extern template struct std::pair; +// extern template class std::map; + #include SE_BEGIN_CXX