Title
Inconsistent declaration of polar()
Status
tc1
Section
[complex.syn] [complex.value.ops]
Submitter
Nico Josuttis

Created on 1998-09-29.00:00:00 last changed 164 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

In [complex.syn] change:

   template<class T> complex<T> polar(const T&, const T&);

to:

   template<class T> complex<T> polar(const T& rho, const T& theta = 0); 
Date: 1998-09-29.00:00:00

In [complex.syn] polar is declared as follows:

   template<class T> complex<T> polar(const T&, const T&); 

In [complex.value.ops] it is declared as follows:

   template<class T> complex<T> polar(const T& rho, const T& theta = 0); 

Thus whether the second parameter is optional is not clear.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg182
1998-09-29 00:00:00admincreate