Merge pull request #4281 from mathisloge/fix/unique_shared_ptr

use shared::ptr<T>::use_count instead of unique()
This commit is contained in:
Artem Pavlenko 2022-01-25 12:09:52 +00:00 committed by GitHub
commit 1d6350b1e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ public:
typename ContType::iterator itr=pool_.begin();
while ( itr!=pool_.end())
{
if (!itr->unique())
if (itr->use_count() > 1)
{
++itr;
}