incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Farid_Zari...@epam.com>
Subject RE: svn commit: r587164 - /incubator/stdcxx/branches/4.2.x/include/vector.cc
Date Tue, 23 Oct 2007 13:15:16 GMT
> -----Original Message-----
> From: Travis Vitek [mailto:Travis.Vitek@roguewave.com] 
> Sent: Monday, October 22, 2007 9:38 PM
> To: stdcxx-dev@incubator.apache.org
> Subject: RE: svn commit: r587164 - 
> /incubator/stdcxx/branches/4.2.x/include/vector.cc
> 
> 
> It seems that this change would cause some potentially 
> serious problems in two different cases.
> 
>   1. _TypeT is a UDT with an implementation of operator& that 
> returns something that isn't convertible to a pointer type. 
> [compile error]
>   2. _TypeT is a UDT with an implementation of opreator& that 
> returns something convertible to pointer, but the returned 
> value is not the address of the object. [runtime error]

  Good catch, thanks. I've updated the patch for the issue to use
allocator::address() method.

Farid.

Mime
View raw message