Created on 2010-10-14.00:00:00 last changed 162 months ago
Proposed resolution:
Remove the recently added paragraph 3 from [cmplx.over]:
3 All the specified overloads shall have a return type which is the nested value_type of the effectively cast arguments.
[ Adopted at 2010-11 Batavia ]
[ 2010 Batavia: The working group concurred with the issue's Proposed Resolution ]
In Pittsburgh, we accepted the resolution of library issue 1137, to add a sentence 3 to [cmplx.over]:
All the specified overloads shall have a return type which is the nested value_type of the effectively cast arguments.
This was already true for four of the six functions except conj and proj. It is not completely unreasonable to make proj return the real value only, but the IEC specification does call for an imaginary part of -0 in some circumstances. The people who care about these distinctions really care, and it is required by an international standard.
Making conj return just the real part breaks it horribly, however. It is well understood in mathematics that conj(re + i*im) is (re - i*im), and it is widely used. The accepted new definition makes conj useful only for pure real operations. This botch absolutely must be fixed.
History | |||
---|---|---|---|
Date | User | Action | Args |
2011-08-23 20:07:26 | admin | set | status: wp -> c++11 |
2010-11-24 14:01:03 | admin | set | messages: + msg5440 |
2010-11-14 13:10:57 | admin | set | status: voting -> wp |
2010-11-13 01:17:02 | admin | set | status: open -> voting |
2010-11-13 01:11:40 | admin | set | status: immediate -> open |
2010-11-11 19:16:05 | admin | set | messages: + msg5335 |
2010-11-11 19:16:05 | admin | set | status: new -> immediate |
2010-10-29 14:46:33 | admin | set | messages: + msg5189 |
2010-10-14 00:00:00 | admin | create |