[Bug libstdc++/37347] valarray::operator[](slice) const returns wrong type.

paolo dot carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 3 12:03:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list