This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, libstdc++/64584, libstdc++/64585] Clear basic_regex after imbue and make assign exception tolerant


2015-04-11 23:03 GMT+02:00 Tim Shen <timshen@google.com>:
> On Sat, Apr 11, 2015 at 8:18 PM, Marc Glisse wrote:
>> On Sat, 11 Apr 2015, Tim Shen wrote:
>>
>>> I realized that std::move() on an user defined iterator may cause
>>> compilation error, if user explicitly deletes its move ctor/assign.
>>
>>
>> That would violate the most basic iterator requirements.
>
> I'm not sure about that; [24.2.2.2] seems not to require
> MoveConstructible/MoveAssignable?

24.2.2 [iterator.iterators] requires them to be CopyConstructible and
CopyAssignable, these imply the two more reduced requirements.

- Daniel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]