diff --git a/libcxx/include/complex b/libcxx/include/complex index 41a47cfba47c..c7c1cdedf4d7 100644 --- a/libcxx/include/complex +++ b/libcxx/include/complex @@ -203,7 +203,7 @@ template complex proj(const complex&); template complex proj(T); complex proj(float); -template complex polar(const T&, const T& = 0); +template complex polar(const T&, const T& = T()); // 26.3.8 transcendentals: template complex acos(const complex&); @@ -991,7 +991,7 @@ proj(_Tp __re) template complex<_Tp> -polar(const _Tp& __rho, const _Tp& __theta = _Tp(0)) +polar(const _Tp& __rho, const _Tp& __theta = _Tp()) { if (__libcpp_isnan_or_builtin(__rho) || signbit(__rho)) return complex<_Tp>(_Tp(NAN), _Tp(NAN)); diff --git a/libcxx/test/std/numerics/complex.number/complex.value.ops/polar.pass.cpp b/libcxx/test/std/numerics/complex.number/complex.value.ops/polar.pass.cpp index 5e6cb0d523c2..69463ded2b40 100644 --- a/libcxx/test/std/numerics/complex.number/complex.value.ops/polar.pass.cpp +++ b/libcxx/test/std/numerics/complex.number/complex.value.ops/polar.pass.cpp @@ -11,7 +11,7 @@ // template // complex -// polar(const T& rho, const T& theta = 0); +// polar(const T& rho, const T& theta = T()); // changed from '0' by LWG#2870 #include #include diff --git a/libcxx/www/cxx2a_status.html b/libcxx/www/cxx2a_status.html index 68206cb7f796..684ed7da2e7b 100644 --- a/libcxx/www/cxx2a_status.html +++ b/libcxx/www/cxx2a_status.html @@ -106,7 +106,7 @@ 2779[networking.ts] Relax requirements on buffer sequence iteratorsAlbuquerque - 2870Default value of parameter theta of polar should be dependentAlbuquerque + 2870Default value of parameter theta of polar should be dependentAlbuquerqueComplete 2935What should create_directories do when p already exists but is not a directory?Albuquerque 2941[thread.req.timing] wording should apply to both member and namespace-level functionsAlbuquerqueNothing to do 2944LWG 2905 accidentally removed requirement that construction of the deleter doesn't throw an exceptionAlbuquerqueNothing to do @@ -135,7 +135,7 @@ -

Last Updated: 24-Jan-2018

+

Last Updated: 31-Jan-2018