[libcxx-commits] [PATCH] D61014: Implement std::midpoint for floating point types

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 23 12:48:15 PDT 2019


zoecarver added inline comments.


================
Comment at: libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp:39
+{
+    static_assert(std::is_same_v<T, decltype(std::midpoint(T(), T()))>, "");
+    static_assert(                  noexcept(std::midpoint(T(), T())), "");
----------------
Another nit: maybe use `ASSERT_SAME_TYPE`?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61014/new/

https://reviews.llvm.org/D61014





More information about the libcxx-commits mailing list