From 20f247a21abce88ad6cd1c41c4fa8ddf6e701892 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 29 Feb 2024 07:40:19 -0800 Subject: [PATCH] already submitted change --- clif/testing/iterator.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/clif/testing/iterator.h b/clif/testing/iterator.h index c52c713a..ca94c336 100644 --- a/clif/testing/iterator.h +++ b/clif/testing/iterator.h @@ -22,6 +22,7 @@ // It's using exceptions to demonstrate they are handled correctly by CLIF. #include +#include #include namespace clif_iterator_test { @@ -30,8 +31,14 @@ template class Ring { public: // Mimic std containers, so that Ring::const_iterator is a real thing. - class const_iterator: public std::iterator { + class const_iterator { public: + using value_type = T; + using difference_type = ptrdiff_t; + using pointer = T*; + using reference = T&; + using iterator_category = std::forward_iterator_tag; + // CLIF requires both or neither of copy/move constructors and copy/move // copy assignment operators. const_iterator(const const_iterator&) = default;