const valarray question
Paolo Carlini
pcarlini@suse.de
Mon Jan 9 11:13:00 GMT 2006
Gabriel Dos Reis wrote:
>| Why doesn't 26.3.1.3 apply for operator[](slice)const here? Or, why
>| doesn't g++ choose that method?
>
>Implementor error. Fixed with this.
>
>-- Gaby
>
>2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
>
> * include/bits/valarray_after.h (_Expr<>::operator[](slice)):
> Don't assume the closure implements general indexing, as a matter
> of fact, most of them don't.
> (_Expr<>::operator[](const gslice&)): Likewise.
> (_Expr<>::operator[](const valarray<bool>&)): Likewise.
> (_Expr<>::operator[](const valarray<size_t>&)): Likewise.
> (_Expr<>::shift): Fix thinko.
> (_Expr<>::cshift): Likewise.
> (_Expr<>::apply): Likewise.
>
>
Gaby, can we have this patch in 4_1-branch too?
Also, about the POD issue (now tracked as libstdc++/25626) I think is
sufficiently serious from the conformance point of view to warrant a
rather urgent action: do you want me to extract a minimal fix from your
large draft of a few weeks ago? I think I understand the problem
sufficiently well.
Thanks,
Paolo.
More information about the Libstdc++
mailing list