Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Please Asan.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 11 Jul 2023 10:04:38 +0000 (12:04 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 11 Jul 2023 10:04:38 +0000 (12:04 +0200)
See commit 63225b9520042ef129adb975132fe68ec5710988
"Explicit instanciation of xbt::Extendable<> specializations." for details.

include/simgrid/s4u/ActivitySet.hpp
src/s4u/s4u_ActivitySet.cpp

index 172bb36..86942a3 100644 (file)
 
 #include <vector>
 
-namespace simgrid::s4u {
+namespace simgrid {
+
+extern template class XBT_PUBLIC xbt::Extendable<s4u::ActivitySet>;
+
+namespace s4u {
 /** @brief ActivitiesSet
  *
  * This class is a container of activities, allowing to wait for the completion of any or all activities in the set.
@@ -76,6 +80,7 @@ public:
   bool has_failed_activities() { return not failed_activities_.empty(); }
 };
 
-}; // namespace simgrid::s4u
+} // namespace s4u
+} // namespace simgrid
 
 #endif
index abd272d..4d70420 100644 (file)
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_activityset, s4u_activity, "S4U set of activities");
 
-namespace simgrid::s4u {
+namespace simgrid {
+
+template class xbt::Extendable<s4u::ActivitySet>;
+
+namespace s4u {
 
 void ActivitySet::erase(ActivityPtr a)
 {
@@ -90,4 +94,5 @@ ActivityPtr ActivitySet::get_failed_activity()
   return ret;
 }
 
-}; // namespace simgrid::s4u
\ No newline at end of file
+} // namespace s4u
+} // namespace simgrid