This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/70607] The return type of std::conj must be std::complex<T>


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70607

--- Comment #2 from Alexander Voigt <Alexander.Voigt at desy dot de> ---
I absolutely agree, that the definition of the std::conj() overloads in C++11
is problematic.  However, in my opinion one has to be strict when implementing
the standard.  Otherwise, people might accidentally write non-portable C++11
code and g++ does not complain.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]