potential bug regarding rvalue refs?

Jonathan Wakely jwakely.gcc@gmail.com
Wed Jan 29 20:10:00 GMT 2014


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.



More information about the Gcc-help mailing list