diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-12-01 15:10:06 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-12-01 15:10:06 +0000 |
commit | e735008bf64b1044d12810459a1bf647a591c159 (patch) | |
tree | ac875140c3e3b3d5ff872fb91bbe9170962d5cc2 /libstdc++-v3 | |
parent | 352111c5b1519c9c56531e1fcd32380dcdd62305 (diff) | |
download | gcc-e735008bf64b1044d12810459a1bf647a591c159.zip gcc-e735008bf64b1044d12810459a1bf647a591c159.tar.gz gcc-e735008bf64b1044d12810459a1bf647a591c159.tar.bz2 |
Use value-init syntax in std::__detail::__airy
* include/tr1/modified_bessel_func.tcc (__airy): Use value-init not
list-init.
From-SVN: r255313
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 3 | ||||
-rw-r--r-- | libstdc++-v3/include/tr1/modified_bessel_func.tcc | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a23830d..e2dac20 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2017-12-01 Jonathan Wakely <jwakely@redhat.com> + * include/tr1/modified_bessel_func.tcc (__airy): Use value-init not + list-init. + * include/std/type_traits (integral_constant): Make member functions noexcept (LWG 2346). * include/std/utility (integer_sequence): Likewise. diff --git a/libstdc++-v3/include/tr1/modified_bessel_func.tcc b/libstdc++-v3/include/tr1/modified_bessel_func.tcc index 3910b95..f39ff6c 100644 --- a/libstdc++-v3/include/tr1/modified_bessel_func.tcc +++ b/libstdc++-v3/include/tr1/modified_bessel_func.tcc @@ -384,11 +384,11 @@ namespace tr1 __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); else if (__z == _S_inf) { - __Aip = __Ai = _Tp{0}; + __Aip = __Ai = _Tp(0); __Bip = __Bi = _S_inf; } else if (__z == -_S_inf) - __Bip = __Aip = __Bi = __Ai = _Tp{0}; + __Bip = __Aip = __Bi = __Ai = _Tp(0); else if (__x > _Tp(0)) { _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; |