![](/img/trans.png)
[英]Why doesn't `static_pointer_cast` work with ADL, but requires explicit `std::`?
考慮 我希望對static_pointer_cast的不合格調用解析為std::static_pointer_cast ,因為b作為std::shared_ptr應該使用 ADL 將namespace std帶入。 為什么不呢? 我需要明確編寫std::shared_pointer_cast以使其 ...
[英]Why doesn't `static_pointer_cast` work with ADL, but requires explicit `std::`?
考慮 我希望對static_pointer_cast的不合格調用解析為std::static_pointer_cast ,因為b作為std::shared_ptr應該使用 ADL 將namespace std帶入。 為什么不呢? 我需要明確編寫std::shared_pointer_cast以使其 ...