3 Sep
2014
3 Sep
'14
10:33 p.m.
Ion GaztaƱaga wrote:
In any case, is is_convertible
::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*.