[all-commits] [llvm/llvm-project] 11332c: [libc++] Implement LWG4125: `move_iterator`'s defa...
A. Jiang via All-commits
all-commits at lists.llvm.org
Mon Jun 29 10:02:58 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 11332c60443d4c70923d5518f64fca54e513fe98
https://github.com/llvm/llvm-project/commit/11332c60443d4c70923d5518f64fca54e513fe98
Author: A. Jiang <de34 at live.cn>
Date: 2026-06-30 (Tue, 30 Jun 2026)
Changed paths:
M libcxx/docs/Status/Cxx29Issues.csv
M libcxx/include/__iterator/move_iterator.h
M libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.const/default.pass.cpp
Log Message:
-----------
[libc++] Implement LWG4125: `move_iterator`'s default constructor should be constrained (#206427)
- The default constructor is not yet defaulted as indicated by the
resolution of LWG4125, because the effects of defaulted-ness is not
strictly observable. Also, it's arguable not feasible to use default
member initializer `= _Iter()` because it might cause non-conforming
behavior in pre-C++17 modes, due to lack of guaranteed RVO.
- In the test file, `NoDefaultCtr` is replaced with a proper iterator
type `cpp20_input_iterator<int*>` to make the test more pedantically
conforming.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list