17 Nov
2010
17 Nov
'10
2:31 p.m.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 16 November 2010, Peter Dimov wrote:
Interesting... which version of GCC? Without the static_cast, it shouldn't compile, as rvalue references no longer bind to lvalues. In fact, I see that I added the static_cast in [61574] for that very reason.
$ gcc --version gcc (Debian 4.3.2-1.1) 4.3.2 Its implementation of std::forward looks like: template<typename _Tp> inline _Tp&& forward(typename std::identity<_Tp>::type&& __t) { return __t; } -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkzj51EACgkQ5vihyNWuA4WP8QCg3kIa/TqBzQl4JDGnbUKkeAKT Z9UAoIeNJmodVJu6V8JxH/WhnEMi5rf4 =b8yU -----END PGP SIGNATURE-----