[libcxx-commits] [libcxx] Use `LIBCPP_STATIC_ASSERT` in chrono test (PR #132566)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Mar 23 10:31:30 PDT 2025
================
@@ -30,7 +30,7 @@ int main(int, char**)
static_assert((std::is_same<C::rep, C::duration::rep>::value), "");
static_assert((std::is_same<C::period, C::duration::period>::value), "");
static_assert((std::is_same<C::duration, C::time_point::duration>::value), "");
- static_assert(C::is_steady || !C::is_steady, "");
+ static_assert(std::is_same<decltype(C::is_steady), const bool>::value, "");
test(std::chrono::high_resolution_clock::is_steady);
----------------
PaulXiCao wrote:
Does someone know what this is supposed to test?
Incase it is just testing that the member exists it is probably already enough to have the static_assert line above?
https://github.com/llvm/llvm-project/pull/132566
More information about the libcxx-commits
mailing list