[[patch] valarray (was Re: valarray_copy implementation question)

Gabriel Dos Reis gdr@integrable-solutions.net
Fri Nov 27 09:55:00 GMT 2009


On Fri, Nov 27, 2009 at 3:29 AM, Christian BRUEL <christian.bruel@st.com> wrote:
> If you want a complete example of how this is used this you can check the
> example 14-22 at
> http://www.linux-kheops.com/doc/casteyde/cours_cpp-1.40.1/htm/x5866.htm#AEN6045
>
> that segfaults with g++
>
> because the computed assignment is between a source and a destination that
> have different sizes. It's a user error so easy to step into I guess. The
> Standard didn't make this point very intuitive.

Thanks.  Could you contact the author of the `lecture' and have him/her correct
that example?

-- Gaby



More information about the Libstdc++ mailing list