Boost logo

Boost :

Subject: Re: [boost] [smart_ptr] Moving cast for unique_ptr
From: Peter Dimov (lists_at_[hidden])
Date: 2015-10-08 09:01:55

Karolin Varner wrote:

> For std::shared_ptr and the other pointers we might still emulate a moving
> cast in order to facilitate generic programming.

Like Gavin, I'm not sure I quite see the point of using dynamic_pointer_cast
on an rvalue in generic code, because if it fails, the original is lost.

Boost list run by bdawes at, gregod at, cpdaniel at, john at