|
Boost Users : |
Subject: Re: [Boost-users] Valgrind false positive in make_shared
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2010-11-17 09:31:44
-----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-----
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net