$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Valgrind false positive in make_shared
From: Peter Dimov (pdimov_at_[hidden])
Date: 2010-11-16 21:22:50
Frank Mori Hess wrote:
> Another bit of info: getting rid of the static_cast in
> boost::detail::sp_forward makes both the compiler warning and valgrind
> error go away, although I have no idea why.
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.