This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/42242] vector::resize could be split up into two different functions
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2009 19:26:12 -0000
- Subject: [Bug libstdc++/42242] vector::resize could be split up into two different functions
- References: <bug-42242-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from igodard at pacbell dot net 2009-12-01 19:26 -------
Subject: Re: vector::resize could be split up into two
different functions
We await r-value references with baited breath :-)
chris at bubblescope dot net wrote:
> ------- Comment #10 from chris at bubblescope dot net 2009-12-01 19:07 -------
> Anyway, the result of this bug is that the fix to resize() given in the latest
> draft of C++0x should be applied. The resulting code would only be invoked if
> you ask the compiler to use C++0x mode, but if care about performance you
> should be doing this anyway, I suspect your types may well benefit from rvalue
> references.
>
>
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42242