During the review of D97115 it was mentioned adding the <utility>
header for __to_underlying was a bit unfortunate. Nowadays we tend to
implement smaller headers, so a good reason to move std::to_underlying
to its own header and adjust <charconv> to use the new header.
Details
Details
- Reviewers
curdeius • Quuxplusone - Group Reviewers
Restricted Project - Commits
- rGa354fd56c504: [libc++] Adds __utility/to_underlying.h.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks good to me. Please wait for at least one more reviewer, if not @ldionne himself, to OK it, though — I don't think it should be just me and yourself looking at this.
libcxx/include/__utility/to_underlying.h | ||
---|---|---|
3 | This filename (on line 2, that is) doesn't seem quite right; is this libc++ style? I haven't checked. |
Comment Actions
LGTM. Please update the filename in the comment as indicated by Arthur before landing.
Comment Actions
Thanks for the reviews.
libcxx/include/__utility/to_underlying.h | ||
---|---|---|
3 | It's indeed wrong. I've adjusted it. |
This filename (on line 2, that is) doesn't seem quite right; is this libc++ style? I haven't checked.