diff --git a/src/nrnpython/convert_cxx_exceptions.hpp b/src/nrnpython/convert_cxx_exceptions.hpp index 683356e934..a4a8b41f72 100644 --- a/src/nrnpython/convert_cxx_exceptions.hpp +++ b/src/nrnpython/convert_cxx_exceptions.hpp @@ -29,7 +29,7 @@ struct error_value_impl< template struct convert_cxx_exceptions_trait { - using return_type = typename std::result_of::type; + using return_type = std::invoke_result_t; static return_type error_value() { return detail::error_value_impl::value();