From 1c3813ce52b1a605d23c8e0e4a31e47e2291a21f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 10 Dec 2006 21:01:55 +0000 Subject: [PATCH] BOOST_ASSERTs added (SF patch 1612733 by 'Baraclese') [SVN r36316] --- include/boost/intrusive_ptr.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/intrusive_ptr.hpp b/include/boost/intrusive_ptr.hpp index cd1ac11..95cca04 100644 --- a/include/boost/intrusive_ptr.hpp +++ b/include/boost/intrusive_ptr.hpp @@ -112,11 +112,13 @@ public: T & operator*() const { + BOOST_ASSERT( p_ != 0 ); return *p_; } T * operator->() const { + BOOST_ASSERT( p_ != 0 ); return p_; }