Use value-init syntax in std::__detail::__airy
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Dec 2017 15:10:06 +0000 (15:10 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 1 Dec 2017 15:10:06 +0000 (15:10 +0000)
* include/tr1/modified_bessel_func.tcc (__airy): Use value-init not
list-init.

From-SVN: r255313

libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1/modified_bessel_func.tcc

index a23830db4a5a5adb915e6563b57e24f06fd0cc62..e2dac201d41c45388eef8b1dabe7834d4742d6ca 100644 (file)
@@ -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.
index 3910b95bd28322c7d78dc86dfff6cb2d0ed6a3d4..f39ff6c82d2509b458a455e56135e496fc71b4ac 100644 (file)
@@ -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;