Boost C++ Libraries: Ticket #9164: Dereference null return value in make_shared_object.hpp https://svn.boost.org/trac10/ticket/9164 <p> Using some static analyzer tool , Boost reports warning messages Dereference null return value. </p> <p> In codes like: boost::detail::sp_ms_deleter&lt; T &gt; * pd = static_cast&lt;boost::detail::sp_ms_deleter&lt; T &gt; *&gt;( pt._internal_get_untyped_deleter() ); </p> <p> pd is dereference in next line : void * pv = pd-&gt;address(); </p> <p> If pd is NULL in above call, dereferencing it may cause crash. </p> <p> It can be avoided by using: BOOST_ASSERT(!pd); </p> <p> It is at many places. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9164 Trac 1.4.3