Use value-init syntax in std::__detail::__airy

* include/tr1/modified_bessel_func.tcc (__airy): Use value-init not
	list-init.

From-SVN: r255313
This commit is contained in:
Jonathan Wakely 2017-12-01 15:10:06 +00:00 committed by Jonathan Wakely
parent 352111c5b1
commit e735008bf6
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2017-12-01 Jonathan Wakely <jwakely@redhat.com> 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 * include/std/type_traits (integral_constant): Make member functions
noexcept (LWG 2346). noexcept (LWG 2346).
* include/std/utility (integer_sequence): Likewise. * include/std/utility (integer_sequence): Likewise.

View File

@ -384,11 +384,11 @@ namespace tr1
__Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN();
else if (__z == _S_inf) else if (__z == _S_inf)
{ {
__Aip = __Ai = _Tp{0}; __Aip = __Ai = _Tp(0);
__Bip = __Bi = _S_inf; __Bip = __Bi = _S_inf;
} }
else if (__z == -_S_inf) else if (__z == -_S_inf)
__Bip = __Aip = __Bi = __Ai = _Tp{0}; __Bip = __Aip = __Bi = __Ai = _Tp(0);
else if (__x > _Tp(0)) else if (__x > _Tp(0))
{ {
_Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu;