mirror of
https://github.com/boostorg/smart_ptr.git
synced 2026-04-12 21:05:57 +02:00
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