This is an archive of the discontinued LLVM Phabricator instance.

[STLExtras] Make const the * operator for mapped_iterator.
ClosedPublic

Authored by asbirlea on Apr 13 2020, 7:26 PM.

Details

Summary

The current non-const * operator shadows the const operator in
iterator_adaptor_base.

Diff Detail

Event Timeline

asbirlea created this revision.Apr 13 2020, 7:26 PM
Herald added a project: Restricted Project. · View Herald Transcript
rriddle accepted this revision.Apr 13 2020, 7:46 PM

Thanks for fixing this. I've been bitten by this non-const operator* quite a bit.

This revision is now accepted and ready to land.Apr 13 2020, 7:46 PM
This revision was automatically updated to reflect the committed changes.