mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 10:07:41 +08:00
Mark private function __sign as constexpr.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@360167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -556,7 +556,7 @@ midpoint(_TPtr __a, _TPtr __b) noexcept
|
||||
|
||||
|
||||
template <typename _Tp>
|
||||
int __sign(_Tp __val) {
|
||||
constexpr int __sign(_Tp __val) {
|
||||
return (_Tp(0) < __val) - (__val < _Tp(0));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user