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

Thomas Ferrand via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat May 4 19:47:05 PDT 2019


a_Tom added inline comments.


================
Comment at: libcxx/include/numeric:559
+template <typename _Tp>
+int __sign(_Tp __val) {
+    return (_Tp(0) < __val) - (__val < _Tp(0));
----------------
Shouldn't this function be constexpr?


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

https://reviews.llvm.org/D61014





More information about the libcxx-commits mailing list