Boost logo

Boost :

Subject: Re: [boost] [smart_ptr]make_shared_array/allocate_shared_arrayfunction templates
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-11-09 12:19:42


Frank Mori Hess wrote:

> Is it allright if I fix the perfect forwarding bug
> (https://svn.boost.org/trac/boost/ticket/2962) in
> make/allocate_shared before it maybe gets copied into a
> make/allocate_shared_array?

Yes of course. I wonder why I defined forward this way.

> IIRC you expressed a preference for using std::forward when I originally
> brought this up. Can I just assume std::forward is available if the
> compiler supports rvalue references? Ticket #3570 suggests this might be
> a problem with stlport however.

Your patch is fine as it is, IMO. We'll probably need to convert the
std::move uses to static_cast<T&&> as well.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk