From: Arnaud Giersch Date: Tue, 20 Oct 2020 19:10:06 +0000 (+0200) Subject: [sonar] Use template parameter. X-Git-Tag: v3.26~262 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b5f726157d6140bbd8557ff01ced7a0bc7766eec [sonar] Use template parameter. --- diff --git a/src/mc/Session.cpp b/src/mc/Session.cpp index e25e431057..d29fbeb707 100644 --- a/src/mc/Session.cpp +++ b/src/mc/Session.cpp @@ -27,7 +27,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_Session, mc, "Model-checker session"); namespace simgrid { namespace mc { -static void run_child_process(int socket, const std::function& code) +template void run_child_process(int socket, Code code) { /* On startup, simix_global_init() calls simgrid::mc::Client::initialize(), which checks whether the MC_ENV_SOCKET_FD * env variable is set. If so, MC mode is assumed, and the client is setup from its side