From 70d02be7e369e8763bf3238eb7c6ae7f9efb5429 Mon Sep 17 00:00:00 2001 From: Lancelot Six Date: Fri, 13 Oct 2023 12:39:55 +0000 Subject: gdbsupport: Replace gdb::invoke_result with std::invoke_result Given that GDB now requires C++17, we can replace gdb::invoke_result with std::invoke_result which is provided by . This patch also removes gdbsupport/invoke-result.h as it is not used anymore. Change-Id: I7e567356d38d6b3d85d8797d61cfc83f6f933f22 Approved-By: Tom Tromey Approved-By: Pedro Alves --- gdbsupport/safe-iterator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdbsupport/safe-iterator.h') diff --git a/gdbsupport/safe-iterator.h b/gdbsupport/safe-iterator.h index ccd772c..b489132 100644 --- a/gdbsupport/safe-iterator.h +++ b/gdbsupport/safe-iterator.h @@ -19,7 +19,7 @@ #ifndef COMMON_SAFE_ITERATOR_H #define COMMON_SAFE_ITERATOR_H -#include "gdbsupport/invoke-result.h" +#include /* A forward iterator that wraps Iterator, such that when iterating with iterator IT, it is possible to delete *IT without invalidating @@ -77,7 +77,7 @@ public: basic_safe_iterator () {} - typename gdb::invoke_result::type + typename std::invoke_result::type operator* () const { return *m_it; } -- cgit v1.1