Boost logo

Boost Users :

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.


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