diff --git a/libc/benchmarks/LibcBenchmark.h b/libc/benchmarks/LibcBenchmark.h --- a/libc/benchmarks/LibcBenchmark.h +++ b/libc/benchmarks/LibcBenchmark.h @@ -272,8 +272,8 @@ using difference_type = ssize_t; using size_type = size_t; - class const_iterator - : public std::iterator { + class const_iterator { + using iterator_category = std::input_iterator_tag; llvm::ArrayRef Array; size_t Index; size_t Offset;