X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dab463f91c04f1f5202ee916485a66e4995e3832..b6dde5ff6f208b83545a4b4e9e81712d0d8617a1:/src/smpi/include/smpi_f2c.hpp diff --git a/src/smpi/include/smpi_f2c.hpp b/src/smpi/include/smpi_f2c.hpp index 455973c74d..de22e285e3 100644 --- a/src/smpi/include/smpi_f2c.hpp +++ b/src/smpi/include/smpi_f2c.hpp @@ -1,6 +1,6 @@ /* Handle Fortan - C conversion for MPI Types*/ -/* Copyright (c) 2010-2019. The SimGrid Team. +/* Copyright (c) 2010-2020. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -23,7 +23,7 @@ class F2C { // Beware of collisions if id in mpif.h is not unique static std::unordered_map* f2c_lookup_; static int f2c_id_; - int my_f2c_id_; + int my_f2c_id_ = -1; protected: static std::unordered_map* f2c_lookup(); @@ -36,7 +36,7 @@ class F2C { static char* get_key(char* key, int id); static void delete_lookup(); static std::unordered_map* lookup(); - F2C() : my_f2c_id_(-1){} + F2C() {} virtual ~F2C() = default; //Override these to handle specific values.