diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-04-24 17:25:21 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-04-24 17:25:21 +0100 |
commit | 303b2264579de25b5d1491bc1684638a1a351126 (patch) | |
tree | a5931c6b36d104dcef098cf018e28b663c444124 /libstdc++-v3/include/std/numeric | |
parent | 81c7cf71bf7bc76e360901edb4b3ccbecd2492d0 (diff) | |
download | gcc-303b2264579de25b5d1491bc1684638a1a351126.zip gcc-303b2264579de25b5d1491bc1684638a1a351126.tar.gz gcc-303b2264579de25b5d1491bc1684638a1a351126.tar.bz2 |
Use __and_v<...> instead of __and_<...>::value
* include/std/any (any::any(ValueType&&)): Use __and_v.
* include/std/numeric (midpoint(T, T, T), midpoint(T*, T*, T*)):
Likewise.
From-SVN: r270552
Diffstat (limited to 'libstdc++-v3/include/std/numeric')
-rw-r--r-- | libstdc++-v3/include/std/numeric | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libstdc++-v3/include/std/numeric b/libstdc++-v3/include/std/numeric index ffd9eae..4858ad1 100644 --- a/libstdc++-v3/include/std/numeric +++ b/libstdc++-v3/include/std/numeric @@ -162,8 +162,8 @@ namespace __detail template<typename _Tp> constexpr - enable_if_t<__and_<is_arithmetic<_Tp>, is_same<remove_cv_t<_Tp>, _Tp>, - __not_<is_same<_Tp, bool>>>::value, + enable_if_t<__and_v<is_arithmetic<_Tp>, is_same<remove_cv_t<_Tp>, _Tp>, + __not_<is_same<_Tp, bool>>>, _Tp> midpoint(_Tp __a, _Tp __b) noexcept { @@ -192,8 +192,7 @@ template<typename _Tp> template<typename _Tp> constexpr - enable_if_t<__and_<is_object<_Tp>, bool_constant<sizeof(_Tp) != 0>>::value, - _Tp*> + enable_if_t<__and_v<is_object<_Tp>, bool_constant<sizeof(_Tp) != 0>>, _Tp*> midpoint(_Tp* __a, _Tp* __b) noexcept { return __a > __b ? __b + (__a - __b) / 2 : __a + (__b - __a) / 2; |