Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"valarray<complex>" #7235

Open
jwakely opened this issue Aug 19, 2024 · 2 comments
Open

"valarray<complex>" #7235

jwakely opened this issue Aug 19, 2024 · 2 comments

Comments

@jwakely
Copy link
Member

jwakely commented Aug 19, 2024

[numeric.requirements]:

[Example 1 : It is valid to instantiate valarray<complex>, but operator>() will not be successfully instantiated for
valarray<complex> operands, since complex does not have any ordering operators. — end example]

What is valarray<complex>? What is complex?

Referring to operator>() with parentheses is wrong too, there's no such function signature, and that's not a valid function call expression.

@tkoeppe
Copy link
Contributor

tkoeppe commented Oct 17, 2024

Maybe this is pre-standard (or even pre-template?) wording... we should probably say valarray<complex<T>>.

Or maybe CTAD is now actually making the example correct again :-)

@CaseyCarter
Copy link
Contributor

Or maybe CTAD is now actually making the example correct again :-)

Clearly the best fix here is for Core to change the language to make the note correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants