From 32e97a239e07a5d99b4085605597f195c7e92c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Tr=C3=A1vn=C3=AD=C4=8Dek?= <jan.travnicek@fit.cvut.cz> Date: Sun, 26 Dec 2021 06:50:28 +0100 Subject: [PATCH] abstraction: replace std::result_of with std::invoke_result std::result_of is deprecated in C++17 --- alib2abstraction/src/core/normalize.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alib2abstraction/src/core/normalize.hpp b/alib2abstraction/src/core/normalize.hpp index 17e7314823..4a1729977f 100644 --- a/alib2abstraction/src/core/normalize.hpp +++ b/alib2abstraction/src/core/normalize.hpp @@ -8,7 +8,7 @@ template < typename T > struct normalize { }; template < class ReturnType > -using normalizationResult = typename std::decay < typename std::result_of < decltype ( & core::normalize < ReturnType >::eval ) ( ReturnType && ) >::type >::type; +using normalizationResult = typename std::decay_t < typename std::invoke_result_t < decltype ( core::normalize < ReturnType >::eval ), ReturnType && > >; /** * \brief -- GitLab