From f09c19d94ad97d03c64e318d153e93b53c099daf Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 21 Jul 2020 18:00:25 +0200 Subject: Deprecated std::result_of has been removed from C++20 ...and is no longer provided at least by VS 2019 16.6.4 when using --with-latest-c++ Change-Id: Iac68bd4eb74a1f805d30cca49da59f35d8af4240 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99169 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- slideshow/source/engine/eventmultiplexer.cxx | 2 +- slideshow/source/inc/listenercontainer.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/slideshow/source/engine/eventmultiplexer.cxx b/slideshow/source/engine/eventmultiplexer.cxx index 888f9039fd12..678c44e42e50 100644 --- a/slideshow/source/engine/eventmultiplexer.cxx +++ b/slideshow/source/engine/eventmultiplexer.cxx @@ -94,7 +94,7 @@ struct slideshow::internal::ListenerOperations std::shared_ptr pListener( rCurr.ptr.lock() ); if( pListener.get() && - FunctionApply const&)>::type, + FunctionApply const&>::type, std::shared_ptr >::apply(func,pListener) ) { bRet = true; diff --git a/slideshow/source/inc/listenercontainer.hxx b/slideshow/source/inc/listenercontainer.hxx index 6046f5f8efe4..8deb1be90617 100644 --- a/slideshow/source/inc/listenercontainer.hxx +++ b/slideshow/source/inc/listenercontainer.hxx @@ -84,7 +84,7 @@ template< typename ListenerT > struct ListenerOperations bool bRet(false); for( const auto& rCurr : rContainer ) { - if( FunctionApply< typename ::std::result_of< FuncT( const typename ContainerT::value_type& ) >::type, + if( FunctionApply< typename ::std::invoke_result< FuncT, const typename ContainerT::value_type& >::type, typename ContainerT::value_type >::apply( func, rCurr) ) @@ -135,7 +135,7 @@ struct ListenerOperations< std::weak_ptr > std::shared_ptr pListener( rCurr.lock() ); if( pListener.get() && - FunctionApply const&)>::type, + FunctionApply const&>::type, std::shared_ptr >::apply(func,pListener) ) { bRet = true; -- cgit v1.2.3