[libcxx-commits] [PATCH] D122072: [libc++][test] Adds an cpp20_output_iterator.

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 26 23:17:24 PDT 2022


philnik added a comment.

It would be great if you remove the pre C++20 stuff. This would be nice to have for the ranges algorithm tests.



================
Comment at: libcxx/test/support/test_iterators.h:540-544
+    TEST_CONSTEXPR_CXX14 cpp20_output_iterator operator++(int) {
+        auto temp = *this;
+        ++*this;
+        return temp;
+    }
----------------
The post-increment `operator++` return `void` with the ranges stuff.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122072/new/

https://reviews.llvm.org/D122072



More information about the libcxx-commits mailing list