This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/37347] valarray::operator[](slice) const returns wrong type.
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2008 12:02:18 -0000
- Subject: [Bug libstdc++/37347] valarray::operator[](slice) const returns wrong type.
- References: <bug-37347-16660@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from paolo dot carlini at oracle dot com 2008-09-03 12:02 -------
(In reply to comment #5)
> Well, but it is not applicabel to helper class slice_array.
No, no, is totally applicable. And this is a well known design choice, allowed
by the standard on purpose, in this way implementors can optimize the code via
expression template techniques.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37347