This is the mail archive of the gcc-bugs@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]

[Bug libstdc++/17453] G++ type conversion bug


------- Additional Comments From bangerth at dealii dot org  2004-09-13 13:24 -------
Gcc doesn't do the conversion because the standard doesn't specifically 
say it has to be able to. Our implementation uses some optimizations 
that don't allow this simple conversion, because our iterations aren't 
just pointers. 
 
The solution to your problem is to either do an element-wise copy, or 
if you are adventurous, use 
  &*vec.begin(); 
to get the address of the first element. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|c++                         |libstdc++
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17453


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