-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After P0547R0, const-qualified iterator types are not Readable or Writable #339
Labels
Comments
ericniebler
changed the title
After P0547,
After P0547, Feb 28, 2017
const
-qualified iterator types are not Readableconst
-qualified iterator types are not Readable or Writable
SUPERSEDED (...by incorporation into P0547R1)Update section "Concept template <class I>
concept bool Readable() {
- return Movable<I>() && DefaultConstructible<I>() &&
- requires(const I& i) {
+ return requires {
typename value_type_t<I>;
typename reference_t<I>;
typename rvalue_reference_t<I>;
- { *i } -> Same<reference_t<I>>;
- { ranges::iter_move(i) } -> Same<rvalue_reference_t<I>>;
} &&
CommonReference<reference_t<I>, value_type_t<I>&>() &&
CommonReference<reference_t<I>, rvalue_reference_t<I>>() &&
CommonReference<rvalue_reference_t<I>, const value_type_t<I>&>();
} Update section "Concept template <class Out, class T>
concept bool Writable() {
- return Movable<Out>() && DefaultConstructible<Out>() &&
- requires(Out o, T&& t) {
+ return requires(Out& o, T&& t) {
*o = std::forward<T>(t); // not required to be equality preserving
};
} @CaseyCarter for your review. |
The requires expression in |
Fixed by P0547, LWG wants to see the paper again. |
CaseyCarter
added a commit
to microsoft/Range-V3-VS2015
that referenced
this issue
Mar 24, 2017
* Update Readable per ericniebler/stl2#339 * Don't require Readable-post-increment for WeakInputIterator, a la P0541
This was referenced May 30, 2017
CaseyCarter
changed the title
After P0547,
After P0547R0, const-qualified iterator types are not Readable or Writable
Jul 7, 2017
const
-qualified iterator types are not Readable or Writable
CaseyCarter
added a commit
that referenced
this issue
Jul 18, 2017
Merged
CaseyCarter
added a commit
that referenced
this issue
Jul 18, 2017
CaseyCarter
added a commit
that referenced
this issue
Jul 18, 2017
CaseyCarter
added a commit
that referenced
this issue
Jul 18, 2017
CaseyCarter
added a commit
that referenced
this issue
Jul 18, 2017
CaseyCarter
added a commit
that referenced
this issue
Jul 18, 2017
CaseyCarter
added a commit
that referenced
this issue
Jul 18, 2017
CaseyCarter
added a commit
to CaseyCarter/cmcstl2
that referenced
this issue
Dec 27, 2017
* P0541 * P0547 * P0579 * ericniebler/stl2#155 * ericniebler/stl2#167 * ericniebler/stl2#172 * ericniebler/stl2#229 * ericniebler/stl2#232 * ericniebler/stl2#239 * ericniebler/stl2#241 * ericniebler/stl2#242 * ericniebler/stl2#243 * ericniebler/stl2#244 * ericniebler/stl2#245 * ericniebler/stl2#255 * ericniebler/stl2#286 * ericniebler/stl2#299 * ericniebler/stl2#301 * ericniebler/stl2#310 * ericniebler/stl2#311 * ericniebler/stl2#313 * ericniebler/stl2#322 * ericniebler/stl2#339 * ericniebler/stl2#381 Remove post-increment experiment in `move_iterator`. Remove `EqualityComparable`/`Sentinel<default_sentinel>` extensions to `ostreambuf_iterator`.
CaseyCarter
added a commit
to CaseyCarter/cmcstl2
that referenced
this issue
Mar 5, 2018
* P0541 * P0547 * P0579 * ericniebler/stl2#155 * ericniebler/stl2#167 * ericniebler/stl2#172 * ericniebler/stl2#229 * ericniebler/stl2#232 * ericniebler/stl2#239 * ericniebler/stl2#241 * ericniebler/stl2#242 * ericniebler/stl2#243 * ericniebler/stl2#244 * ericniebler/stl2#245 * ericniebler/stl2#255 * ericniebler/stl2#286 * ericniebler/stl2#299 * ericniebler/stl2#301 * ericniebler/stl2#310 * ericniebler/stl2#311 * ericniebler/stl2#313 * ericniebler/stl2#322 * ericniebler/stl2#339 * ericniebler/stl2#381 Remove post-increment experiment in `move_iterator`. Remove `EqualityComparable`/`Sentinel<default_sentinel>` extensions to `ostreambuf_iterator`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Readable
requiresMovable
.const
-qualified types are notMovable
after P0547R0. Ouch.Proposed Resolution
Accept the revised wording in P0547R1.
The text was updated successfully, but these errors were encountered: