From ea07b72c0e8930b4fb53914233df1583c5a6bb9c Mon Sep 17 00:00:00 2001 From: Razvan Becheriu Date: Mon, 18 Nov 2019 12:16:20 +0200 Subject: [PATCH] [#891,!592] use c++11 syntax - compile without errors on clang and g++ --- src/lib/util/multi_threading_mgr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/util/multi_threading_mgr.h b/src/lib/util/multi_threading_mgr.h index d16ba3d699..1b2f768110 100644 --- a/src/lib/util/multi_threading_mgr.h +++ b/src/lib/util/multi_threading_mgr.h @@ -67,7 +67,7 @@ public: /// @param f the functor to call /// @result the result of the functor call template - static auto call(Lockable& lk, const Callable& f) { + static auto call(Lockable& lk, const Callable& f) -> decltype(f()) { if (MultiThreadingMgr::instance().getMode()) { std::lock_guard lock(lk); return f();