Re: potential bug regarding rvalue refs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 29, 2014 at 12:09 PM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> 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




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux