aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/safe-iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdbsupport/safe-iterator.h')
-rw-r--r--gdbsupport/safe-iterator.h4
1 files changed, 2 insertions, 2 deletions
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 <type_traits>
/* 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<decltype(&Iterator::operator*), Iterator>::type
+ typename std::invoke_result<decltype(&Iterator::operator*), Iterator>::type
operator* () const
{ return *m_it; }