From: Martin Quinson Date: Sun, 25 Sep 2016 22:53:51 +0000 (+0200) Subject: inline functions should not be dllexported X-Git-Tag: v3_14~391 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/58e17fd069d9d576c05bec8c3283f129324c3f93?ds=sidebyside inline functions should not be dllexported --- 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); }); }