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 <sbergman@redhat.com>
This commit is contained in:
@@ -94,7 +94,7 @@ struct slideshow::internal::ListenerOperations<ViewEventHandlerWeakPtrWrapper>
|
|||||||
std::shared_ptr<ViewEventHandler> pListener( rCurr.ptr.lock() );
|
std::shared_ptr<ViewEventHandler> pListener( rCurr.ptr.lock() );
|
||||||
|
|
||||||
if( pListener.get() &&
|
if( pListener.get() &&
|
||||||
FunctionApply<typename ::std::result_of<FuncT (std::shared_ptr<ViewEventHandler> const&)>::type,
|
FunctionApply<typename ::std::invoke_result<FuncT, std::shared_ptr<ViewEventHandler> const&>::type,
|
||||||
std::shared_ptr<ViewEventHandler> >::apply(func,pListener) )
|
std::shared_ptr<ViewEventHandler> >::apply(func,pListener) )
|
||||||
{
|
{
|
||||||
bRet = true;
|
bRet = true;
|
||||||
|
@@ -84,7 +84,7 @@ template< typename ListenerT > struct ListenerOperations
|
|||||||
bool bRet(false);
|
bool bRet(false);
|
||||||
for( const auto& rCurr : rContainer )
|
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(
|
typename ContainerT::value_type >::apply(
|
||||||
func,
|
func,
|
||||||
rCurr) )
|
rCurr) )
|
||||||
@@ -135,7 +135,7 @@ struct ListenerOperations< std::weak_ptr<ListenerTargetT> >
|
|||||||
std::shared_ptr<ListenerTargetT> pListener( rCurr.lock() );
|
std::shared_ptr<ListenerTargetT> pListener( rCurr.lock() );
|
||||||
|
|
||||||
if( pListener.get() &&
|
if( pListener.get() &&
|
||||||
FunctionApply<typename ::std::result_of<FuncT (std::shared_ptr<ListenerTargetT> const&)>::type,
|
FunctionApply<typename ::std::invoke_result<FuncT, std::shared_ptr<ListenerTargetT> const&>::type,
|
||||||
std::shared_ptr<ListenerTargetT> >::apply(func,pListener) )
|
std::shared_ptr<ListenerTargetT> >::apply(func,pListener) )
|
||||||
{
|
{
|
||||||
bRet = true;
|
bRet = true;
|
||||||
|
Reference in New Issue
Block a user