Based on review comments in D97705 applied some code cleanups in
<charconv>. The header now uses a more recent libc++ style.
Details
- Reviewers
• Quuxplusone philnik - Group Reviewers
Restricted Project - Commits
- rG3925f98de4ac: [libc++][NFC] Cleanups in <charconv>.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM % comment.
libcxx/include/charconv | ||
---|---|---|
109–111 | I think this fails in C++03, but I don't know why it is available in C++03 at all. |
LGTM if CI is happy!
libcxx/include/charconv | ||
---|---|---|
109–111 | +1; could this be moved under the following #if? | |
171 | Pre-existing, tangential: I notice that here the SFINAE is testing explicit curly-brace-initialization from _Tp to uint32_t, but what's actually used on line 184 is implicit conversion (and ADL on _Tp). If _Tp is always a built-in integer type, this is probably all fine. | |
323–324 | Consider breaking after int, to match lines 308-309. |
I think this fails in C++03, but I don't know why it is available in C++03 at all.