potential bug regarding rvalue refs?

Brian Budge brian.budge@gmail.com
Wed Jan 29 20:56:00 GMT 2014


On Wed, Jan 29, 2014 at 12:09 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> This is a question about C++ and not specific to G++ so not really
> on-topic on this list.
>
> On 29 January 2014 18:58, Brian Budge wrote:
>>
>> Although I'm far from an expert with rvalue refs and universal refs,
>> this seems like a bug to me.  Thoughts?
>
> G++ is correct, you're forwarding 't' as an rvalue, so overload
> resolution chooses the function taking an rvalue reference.

Florian, Jonathan, thanks for the responses.

  Brian



More information about the Gcc-help mailing list