Boost logo

Boost Users :

Subject: Re: [Boost-users] Valgrind false positive in make_shared
From: Peter Dimov (pdimov_at_[hidden])
Date: 2010-11-18 12:51:55


Dave Steffen wrote:
> I got this bad behavior with GCC 4.4.4. It goes away with GCC 4.2.4.

What is the definition of std::forward in GCC 4.4.4? What happens if you
change boost::detail::sp_forward in make_shared.hpp:150:

::new( pv ) T( boost::detail::sp_forward<Arg1>( arg1 ),
boost::detail::sp_forward<Args>( args )... );

to std::forward, do you get a compile warning on this line and does Valgrind
still warn?


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