potential bug regarding rvalue refs?

Florian Weimer fweimer@redhat.com
Wed Jan 29 19:40:00 GMT 2014


On 01/29/2014 07:58 PM, Brian Budge wrote:

>    f_impl(std::forward<foo>(t));

You need to write std::forward<T> instead of std::forward<foo> to get 
the expected forwarding behavior.

> Although I'm far from an expert with rvalue refs and universal refs,
> this seems like a bug to me.  Thoughts?

What output do you expected instead?


-- 
Florian Weimer / Red Hat Product Security Team



More information about the Gcc-help mailing list