This is an archive of the discontinued LLVM Phabricator instance.

[libc++] __iterator/readable_traits.h isn't standalone
ClosedPublic

Authored by iana on Jun 26 2023, 6:17 PM.

Details

Summary

__iterator/readable_traits.h can't be used by itself, intantiating iter_value_t requires __iterator/iterator_traits.h. readable_traits.h can't include iterator_traits.h though because iterator_traits.h requires readable_traits.h.

Move iter_value_t to __iterator/iterator_traits.h so that both headers can work standalone.

Diff Detail

Event Timeline

iana created this revision.Jun 26 2023, 6:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2023, 6:17 PM
Herald added a subscriber: ributzka. · View Herald Transcript
iana requested review of this revision.Jun 26 2023, 6:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2023, 6:17 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante accepted this revision.Jun 27 2023, 10:18 AM

LGTM, thanks for the cleanup!

This revision is now accepted and ready to land.Jun 27 2023, 10:18 AM
iana edited the summary of this revision. (Show Details)Jun 27 2023, 10:33 AM
This revision was automatically updated to reflect the committed changes.