Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Black magic.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 6 Oct 2020 21:16:58 +0000 (23:16 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 6 Oct 2020 21:17:40 +0000 (23:17 +0200)
Aims to fix MC+smpi on FreeBSD with Clang.

src/smpi/include/smpi_f2c.hpp
src/smpi/mpi/smpi_f2c.cpp

index 5b8a55d..7181c6b 100644 (file)
@@ -36,7 +36,7 @@ class F2C {
     static char* get_key(char* key, int id);
     static void delete_lookup();
     static std::unordered_map<std::string, F2C*>* lookup();
-    F2C()          = default;
+    F2C();
     virtual ~F2C() = default;
 
     //Override these to handle specific values.
index 787a182..dafd940 100644 (file)
@@ -20,6 +20,9 @@ namespace smpi{
 std::unordered_map<std::string, F2C*>* F2C::f2c_lookup_ = nullptr;
 int F2C::f2c_id_ = 0;
 
+// Keep it non trivially-constructible, or it will break MC+smpi on FreeBSD with Clang (don't ask why)
+F2C::F2C() = default;
+
 std::unordered_map<std::string, F2C*>* F2C::f2c_lookup()
 {
   return f2c_lookup_;