mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 08:20:28 +00:00
explicit operator bool
This commit is contained in:
parent
84cf113f85
commit
709cc85d96
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ class shared_ptr
|
|||
return rc ? rc->use_count() : 0;
|
||||
}
|
||||
|
||||
operator bool() const noexcept
|
||||
explicit operator bool() const noexcept
|
||||
{
|
||||
return p;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue