This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/70607] The return type of std::conj must be std::complex<T>
- From: "Alexander.Voigt at desy dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 09 Apr 2016 21:10:41 +0000
- Subject: [Bug libstdc++/70607] The return type of std::conj must be std::complex<T>
- Auto-submitted: auto-generated
- References: <bug-70607-4 at http dot gcc dot gnu dot org/bugzilla/>
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.