Implements part of:
- P1614R2 The Mothership has Landed
Differential D130853
[libc++] Remove `operator!=` from `type_info` in C++20 avogelsgesang on Jul 31 2022, 12:55 PM. Authored by
Details
Implements part of:
Diff Detail
Event TimelineComment Actions Note that there are many more classes for which P1614R2 ("The mothership has landed") just removed the operator!= (typeinfo, allocator, memory_resource, polymorphic_allocator, bitset, scoped_allocator_adaptor,function, unordered_map, unordered_set, move_sentinel, common_iterator, unreachable_sentinel_t, ...). If you prefer, I could go over all of them in a single commit. Afaict, no test cases need changing, as the operator!= will be synthesized by the compiler and all test cases should still pass unchanged. Comment Actions Thanks for working on this! I think it makes sense to do typeinfo separately since that feels a more "sensetive" class. Feel free to do the others in one go. Can you also remove them from chrono? I haven't started on them yet.
Comment Actions I'd actually argue that memory_resource and polymorphic_allocator shouldn't be touched, since they are from LFTSv2 and there the operator!= exists. Comment Actions I'm fine with that too, maybe then a separate commit to only add these changes to the status page, when they aren't there yet. That way we don't accidentally forget about them when porting this code to the main library. Comment Actions
sounds good. I will do so, probably next week
Comment Actions LGTM modulo one small nit.
|