summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2018-01-19 20:51:13 +0100
committerMichael Stahl <mstahl@redhat.com>2018-01-22 09:34:09 +0100
commit67c11b0398cc12b9cfe81566eb0e158446411333 (patch)
tree1bcdc4b7e5e369f27a1a4b52a7a780e3eea2ab45
parentC++17 deprecated std::shared_ptr::unique() (diff)
downloadcore-67c11b0398cc12b9cfe81566eb0e158446411333.tar.gz
core-67c11b0398cc12b9cfe81566eb0e158446411333.zip
vcl: various std::*::result_type deprecated in C++17
Use decltype instead, to prevent MSVC 2017.5 warnings. Change-Id: I760659837e34eb2dc2a3293c43e7f29725b515d6 Reviewed-on: https://gerrit.libreoffice.org/48221 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--include/vcl/threadex.hxx4
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