The individual enum values in copy_options and file_type aren't specified in the standard.
The standard doesn't require fs::path::format to be a scoped enum.
Paths
| Differential D89866
[libcxx] [test] Mark bits of fs.enum tests as libcpp specific ClosedPublic Authored by mstorsjo on Oct 21 2020, 3:49 AM.
Details
Summary The individual enum values in copy_options and file_type aren't specified in the standard. The standard doesn't require fs::path::format to be a scoped enum.
Diff Detail
Event TimelineComment Actions LGTM with suggested changes.
This revision is now accepted and ready to land.Oct 21 2020, 5:32 AM Comment Actions Using LIBCPP_STATIC_ASSERT in the changed lines, and added some comments. There's a few cases of existing LIBCPP_ONLY(static_assert()) in other lines nearby that I'm not touching here though. Closed by commit rG545fb7a71c0c: [libcxx] [test] Mark bits of fs.enum tests as libcpp specific (authored by mstorsjo). · Explain WhyOct 21 2020, 11:12 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 299876 libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp
libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp
libcxx/test/std/input.output/filesystems/fs.enum/enum.path.format.pass.cpp
|
Please use LIBCPP_STATIC_ASSERT instead (it is defined in test_macros.h. I'd like to avoid using macros defined in individual stdlibs in the test suite as much as possible.
Also, it would make sense to add a short comment explaining why those are libc++ specific.