Movatterモバイル変換


[0]ホーム

URL:



This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofC++20 status.

2870. Default value of parametertheta ofpolar should be dependent

Section: 29.4.7[complex.value.ops]Status:C++20Submitter: JapanOpened: 2017-02-03Last modified: 2021-02-25

Priority:Not Prioritized

View all otherissues in [complex.value.ops].

View all issues withC++20 status.

Discussion:

Addresses JP 25

Parametertheta ofpolar has the type of the template parameter. Therefore, it needs to change the default initial value toT(). The change of the declaration of this function in 29.4.2[complex.syn] is accompanied by this change.

Proposed change:

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

[2017-02 pre-Kona]

(twice)

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

Proposed resolution:

This wording is relative toN4659.

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

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

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

[8]ページ先頭

©2009-2026 Movatter.jp