Drive-by constexprify some of the existing tests.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
Address review comments. Fix the C++03 test failure.
Comment on a hacky workaround in std::cref; I'll post a separate PR showing how we might remove it.
Comment Actions
LGTM!
libcxx/include/__functional/reference_wrapper.h | ||
---|---|---|
213 | That makes it clear it's supposed to work like this in all Standard modes and it's not a C++20 change. | |
libcxx/test/std/utilities/function.objects/refwrap/refwrap.helpers/cref_2.pass.cpp | ||
25 | Nice to see these constexpr tests! |
Pre-existing