Re: potential bug regarding rvalue refs?

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

 



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




[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