Title
Default value of parameter theta of polar should be dependent
Status
c++20
Section
[complex.value.ops]
Submitter
Japan

Created on 2017-02-03.00:00:00 last changed 37 months ago

Messages

Date: 2017-06-27.20:22:35

Proposed resolution:

This wording is relative to N4659.

  1. Modify [complex.syn], header <complex> synopsis, as indicated:

    template<class T> complex<T> polar(const T&, const T& = 0T());
    
  2. Modify [complex.value.ops] as indicated:

    template<class T> complex<T> polar(const T& rho, const T& theta = 0T());
    
Date: 2017-06-27.00:00:00

[ 2017-06-27 Moved to Tentatively Ready after 7 positive votes on c++std-lib. ]

Date: 2017-02-03.20:10:49

[ 2017-02 pre-Kona ]

(twice)

Date: 2017-02-03.00:00:00

Addresses JP 25

Parameter theta of polar has the type of the template parameter. Therefore, it needs to change the default initial value to T(). The change of the declaration of this function in [complex.syn] is accompanied by this change.

Proposed change:

template<class T> complex<T> polar(const T& rho, const T& theta = 0T());
History
Date User Action Args
2021-02-25 10:48:01adminsetstatus: wp -> c++20
2017-11-13 19:01:36adminsetstatus: voting -> wp
2017-10-17 18:34:55adminsetstatus: ready -> voting
2017-06-27 20:22:35adminsetmessages: + msg9302
2017-06-27 20:22:35adminsetstatus: new -> ready
2017-02-03 20:10:49adminsetmessages: + msg8857
2017-02-03 20:10:49adminsetmessages: + msg8856
2017-02-03 00:00:00admincreate