Merge pull request #4281 from mathisloge/fix/unique_shared_ptr
use shared::ptr<T>::use_count instead of unique()
This commit is contained in:
commit
1d6350b1e5
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ public:
|
||||||
typename ContType::iterator itr=pool_.begin();
|
typename ContType::iterator itr=pool_.begin();
|
||||||
while ( itr!=pool_.end())
|
while ( itr!=pool_.end())
|
||||||
{
|
{
|
||||||
if (!itr->unique())
|
if (itr->use_count() > 1)
|
||||||
{
|
{
|
||||||
++itr;
|
++itr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue