diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2018-01-31 21:42:39 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2018-01-31 21:42:39 +0000 |
| commit | 0551d83ed50d66f90badacdb070b1bde607a0b66 (patch) | |
| tree | 93cf7413257f3ff1e4444246a1ae57fc0a0b3740 /libcxx/include | |
| parent | 7faa9dac84b80a9160512e4e1a14f2cfca66d38a (diff) | |
| download | bcm5719-llvm-0551d83ed50d66f90badacdb070b1bde607a0b66.tar.gz bcm5719-llvm-0551d83ed50d66f90badacdb070b1bde607a0b66.zip | |
Implement LWG2870: Default value of parameter theta of polar should be dependent
llvm-svn: 323918
Diffstat (limited to 'libcxx/include')
| -rw-r--r-- | libcxx/include/complex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/complex b/libcxx/include/complex index 41a47cfba47..c7c1cdedf4d 100644 --- a/libcxx/include/complex +++ b/libcxx/include/complex @@ -203,7 +203,7 @@ template<class T> complex<T> proj(const complex<T>&); template<Integral T> complex<double> proj(T); complex<float> proj(float); -template<class T> complex<T> polar(const T&, const T& = 0); +template<class T> complex<T> polar(const T&, const T& = T()); // 26.3.8 transcendentals: template<class T> complex<T> acos(const complex<T>&); @@ -991,7 +991,7 @@ proj(_Tp __re) template<class _Tp> 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)); |

