This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/48365] Non-constant references in std::valarray::operator
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Mar 2011 19:18:32 +0000
- Subject: [Bug libstdc++/48365] Non-constant references in std::valarray::operator
- Auto-submitted: auto-generated
- References: <bug-48365-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48365
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-03-31 19:18:28 UTC ---
To further clarify, the issue boils down to class _BinBase1 (and _BinBase2)
using only const ref data members for performance reasons, likewise elsewhere
copies are always carefully avoided (for instance in k *= k[0] in my last
message in the audit trail). I could change that, but I want hear Gaby first.