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

Casey Carter via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 23 13:35:10 PDT 2022


CaseyCarter added inline comments.


================
Comment at: libcxx/test/support/test_iterators.h:541
+    TEST_CONSTEXPR_CXX14 cpp20_output_iterator operator++(int) {
+        auto temp = *this;
+        ++*this;
----------------
This won't compile - `*this` is move-only,


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