X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/070d343ac9e0e28a4529693477696f7da5d23ef7..ae8ac21191cac33b0b16c0c6efa6bd5d17ff240c:/src/smpi/include/smpi_f2c.hpp diff --git a/src/smpi/include/smpi_f2c.hpp b/src/smpi/include/smpi_f2c.hpp index 207c699c4f..03d8908047 100644 --- a/src/smpi/include/smpi_f2c.hpp +++ b/src/smpi/include/smpi_f2c.hpp @@ -33,10 +33,12 @@ class F2C { static void delete_lookup(); static std::unordered_map* lookup(); + virtual ~F2C() = default; + //Override these to handle specific values. - int add_f(); + virtual int add_f(); static void free_f(int id); - int c2f(); + virtual int c2f(); // This method should be overridden in all subclasses to avoid casting the result when calling it. // For the default one, the MPI_*_NULL returned is assumed to be NULL.