This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/17453] G++ type conversion bug
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2004 13:24:17 -0000
- Subject: [Bug libstdc++/17453] G++ type conversion bug
- References: <20040913110856.17453.froloff@os2.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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