|
Boost : |
Subject: Re: [boost] [move][unique_ptr] c++14 unique_ptr comes to town
From: Peter Dimov (lists_at_[hidden])
Date: 2014-09-03 18:33:35
Ion Gaztañaga wrote:
> In any case, is is_convertible<T*, U*>::value expected to return false
> with pointers to incomplete types?
No. is_convertible also wants complete types. It can't know whether U* is
convertible to T* if it doesn't know what T is. It's not possible to use the
converting constructor when T is incomplete - it would be an error either
way. You can make it work for T* -> T const*, but not for U* -> T*.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk