explicit operator bool

This commit is contained in:
Steven Dee (Jōshin) 2024-08-28 15:33:10 -07:00 committed by GitHub
parent 84cf113f85
commit 709cc85d96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -322,7 +322,7 @@ class shared_ptr
return rc ? rc->use_count() : 0;
}
operator bool() const noexcept
explicit operator bool() const noexcept
{
return p;
}