Details
- Reviewers
ldionne - Group Reviewers
Restricted Project - Commits
- rG1f1250151f22: [libc++] [C++2b] [P1048] Add is_scoped_enum and is_scoped_enum_v.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I think we should update libcxx/docs/Cxx2bStatusPaperStatus.csv.
| libcxx/include/type_traits | ||
|---|---|---|
| 4186 | Pleas remove this newline, or add one before the #endif. | |
| libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_scoped_enum.pass.cpp | ||
| 68 | Can you add a test for a function type (not a function pointer)? Also, for pointer to member function, pointer to data members and other fun things like that? | |
| libcxx/include/type_traits | ||
|---|---|---|
| 289 | is_scoped_enumer -> is_scoped_enum. | |
| libcxx/include/type_traits | ||
|---|---|---|
| 289 | Gosh, thanks for catching that. | |
| libcxx/include/type_traits | ||
|---|---|---|
| 289 | Oh, that's the synopsis. | |
| libcxx/include/type_traits | ||
|---|---|---|
| 289 | Yes only the synopsis, the implementation doesn't have the typo. | |
| libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_scoped_enum.pass.cpp | ||
|---|---|---|
| 68 | Is that what you meant? Any other ideas? | |
We're very very close, but there's still a few nits IMO.
| libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_scoped_enum.pass.cpp | ||
|---|---|---|
| 68 | Hmm, almost. I would have used using FunctionType = void() and then test_negative<FunctionType>() instead -- decltype(func1) is resolved as a reference to a function unless I'm mistaken. | |
| 89 | I don't think this one is necessary, it's the same as testing a scoped enum outside of a class. In my mind, it's akin to testing that a scoped enumeration defined in a namespace behaves correctly -- it's testing the compiler, which isn't necessary IMO. | |
| 92 | Same, not necessary IMO. | |
| 118 | Unnecessary IMO, this is just testing long&. | |
| 122 | Unnecessary IMO, this is just testing long&. | |
| 124 | Not necessary, this is just testing for int. | |
is_scoped_enumer -> is_scoped_enum.