diff options
-rw-r--r-- | include/vcl/threadex.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/threadex.hxx b/include/vcl/threadex.hxx index 954593e6604e..5eadc125c748 100644 --- a/include/vcl/threadex.hxx +++ b/include/vcl/threadex.hxx @@ -155,10 +155,10 @@ private: @return return value of functor */ template <typename FuncT> -inline typename FuncT::result_type syncExecute( FuncT const& func ) +inline auto syncExecute(FuncT const& func) -> decltype(func()) { return detail::GenericSolarThreadExecutor< - FuncT, typename FuncT::result_type>::exec(func); + FuncT, decltype(func())>::exec(func); } } // namespace solarthread |