From 58e17fd069d9d576c05bec8c3283f129324c3f93 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 26 Sep 2016 00:53:51 +0200 Subject: [PATCH] inline functions should not be dllexported --- include/simgrid/simix.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/simgrid/simix.hpp b/include/simgrid/simix.hpp index 66cdfb1f11..b6b9a1cecf 100644 --- a/include/simgrid/simix.hpp +++ b/include/simgrid/simix.hpp @@ -130,13 +130,13 @@ XBT_PUBLIC(smx_actor_t) simcall_process_create(const char *name, XBT_PUBLIC(smx_timer_t) SIMIX_timer_set(double date, simgrid::xbt::Task callback); template inline -XBT_PUBLIC(smx_timer_t) SIMIX_timer_set(double date, F callback) +smx_timer_t SIMIX_timer_set(double date, F callback) { return SIMIX_timer_set(date, simgrid::xbt::Task(std::move(callback))); } template inline -XBT_PUBLIC(smx_timer_t) SIMIX_timer_set(double date, R(*callback)(T*), T* arg) +smx_timer_t SIMIX_timer_set(double date, R(*callback)(T*), T* arg) { return SIMIX_timer_set(date, [=](){ callback(arg); }); } -- 2.20.1