forked from boostorg/smart_ptr
BOOST_ASSERTs added (SF patch 1612733 by 'Baraclese')
[SVN r36316]
This commit is contained in:
@@ -112,11 +112,13 @@ public:
|
||||
|
||||
T & operator*() const
|
||||
{
|
||||
BOOST_ASSERT( p_ != 0 );
|
||||
return *p_;
|
||||
}
|
||||
|
||||
T * operator->() const
|
||||
{
|
||||
BOOST_ASSERT( p_ != 0 );
|
||||
return p_;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user