X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/13667460824c1a4d55d44f96adaee6eeda2394f4..4e73c03c087fd07184d9ed45224f7fbad24e686e:/src/smpi/include/smpi_f2c.hpp diff --git a/src/smpi/include/smpi_f2c.hpp b/src/smpi/include/smpi_f2c.hpp index 207c699c4f..f28c8fbafe 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, 2013-2017. The SimGrid Team. +/* Copyright (c) 2010-2019. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -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.