[libcxx-commits] [libcxx] [libc++] Make list constexpr as part of P3372R3 (PR #129799)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 10 08:23:15 PDT 2025
================
@@ -90,12 +86,29 @@ int main(int, char**) {
++i;
assert(*i == 0);
}
- {
- std::list<DefaultOnly, min_allocator<DefaultOnly>> l(3);
- assert(l.size() == 3);
- assert(std::distance(l.begin(), l.end()) == 3);
+
+ if (!TEST_IS_CONSTANT_EVALUATED) {
----------------
ldionne wrote:
Same here -- it seems that `DefaultOnly` should work at compile-time?
https://github.com/llvm/llvm-project/pull/129799
More information about the libcxx-commits
mailing list