| 512 | // Casts - using aliasing constructor (matches std::shared_ptr behavior) |
| 513 | template<typename T, typename Y> |
| 514 | shared_ptr<T> static_pointer_cast(const shared_ptr<Y>& other) FL_NOEXCEPT { |
| 515 | return shared_ptr<T>(other, static_cast<T*>(other.get())); |
| 516 | } |
| 517 | |
| 518 | template<typename T, typename Y> |
| 519 | shared_ptr<T> const_pointer_cast(const shared_ptr<Y>& other) FL_NOEXCEPT { |