Std::weak ptr lastmod 2018-08-17created 2015-08-045 edits Casting for weak_ptr Stackoverflow - static_pointer_cast for weak_ptr template<class T, class U> std::weak_ptr<T> static_pointer_cast(std::weak_ptr<U> const& r) { return std::static_pointer_cast<T>(std::shared_ptr<U>(r)); } See also C++ std::unique_ptr std::shared_ptr Favorite site TR1: weak_ptr MSDN: Create and use weak_ptr instances Modern Effective C++ item 20: weak_ptr for dangling pointers Using c++11 std::weak_ptr Pages that link here Boost C++ Std::shared ptr sitemap