[libcxx-commits] [PATCH] D127577: [libc++] Fix std::lower_bound with C++20-hostile iterators

Eric Fiselier via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jun 12 12:19:02 PDT 2022


EricWF added inline comments.


================
Comment at: libcxx/test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound.pass.cpp:69
+void test_instantiation() {
+    auto iter = Cpp20HostileIterator<int*>{};
+    std::lower_bound(iter, iter, 0);
----------------
I feel like the fact that this doesn't produce a linker error is a happy coincidence rather than a required behavior.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127577



More information about the libcxx-commits mailing list