[libcxx-commits] [PATCH] D78427: [libcxx] Add c++20 <numbers>
kamlesh kumar via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 21 18:25:09 PDT 2020
kamleshbhalui marked an inline comment as done.
kamleshbhalui added inline comments.
================
Comment at: libcxx/test/std/numerics/numbers/numbers.fail.cpp:18
+
+ constexpr int d = std::numbers::e_v<int>; // expected-error-re at numbers:* {{static_assert failed{{( due to requirement '.*')?}}}}
+ constexpr S1 s = std::numbers::e_v<S1>; // expected-error-re at numbers:* {{static_assert failed{{( due to requirement '.*')?}}}}
----------------
zoecarver wrote:
> What's this testing?
this testing is that static assert should fail when other than floating type is used.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78427/new/
https://reviews.llvm.org/D78427
More information about the libcxx-commits
mailing list