Created on 2008-08-20.00:00:00 last changed 161 months ago
Proposed resolution:
Change the first sentence of [numeric.iota]/1:
Requires: T shall
meet the requirements of CopyConstructible and Assignable types, and shallbe assignable to ForwardIterator's value type. [..]
[ 2009-10 Santa Cruz: ]
Change 'convertible' to 'assignable', Move To Ready.
[ 2009-07-30 Daniel reopened: ]
with the absence of concepts, this issue (closed) is valid again and I suggest to reopen it. I also revised by proposed resolution based on N2723 wording:
[ post San Francisco: ]
Issue pulled by author prior to review.
According to the recent WP N2691, [numeric.iota]/1, the requires clause of std::iota says:
T shall meet the requirements of CopyConstructible and Assignable types, and shall be convertible to ForwardIterator's value type.[..]
Neither CopyConstructible nor Assignable is needed, instead MoveConstructible seems to be the correct choice. I guess the current wording resulted as an artifact from comparing it with similar numerical algorithms like accumulate.
Note: If this function will be conceptualized, the here proposed MoveConstructible requirement can be removed, because this is an implied requirement of function arguments, see N2710/[temp.req.impl]/3, last bullet.
History | |||
---|---|---|---|
Date | User | Action | Args |
2011-08-23 20:07:26 | admin | set | status: wp -> c++11 |
2010-10-21 18:28:33 | admin | set | messages: + msg4133 |
2010-10-21 18:28:33 | admin | set | messages: + msg4132 |
2010-10-21 18:28:33 | admin | set | messages: + msg4131 |
2010-10-21 18:28:33 | admin | set | messages: + msg4130 |
2008-08-20 00:00:00 | admin | create |