This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: conversions between vectors


On Dec 21, 2001, "Joseph S. Myers" <jsm28@cam.ac.uk> wrote:

> On 21 Dec 2001, Aldy Hernandez wrote:
>> here is a patch to handle conversions between vectors.  vectors of the
>> same size should convert without a problem.

> I take it your rules for what converts are exactly the same as those for
> C++ valarray, as agreed?

Nope.  You can't assign a valarray<T1> to a valarray<T2> in C++, even
if there's an implicit conversion from T1 to T2.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]