Aims to fix MC+smpi on FreeBSD with Clang.
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.
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_;