mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-31 13:17:23 +02:00
Fixed operator--
[SVN r23210]
This commit is contained in:
@ -38,7 +38,7 @@ public:
|
|||||||
|
|
||||||
long operator--()
|
long operator--()
|
||||||
{
|
{
|
||||||
return !__exchange_and_add(&value_, -1);
|
return __exchange_and_add(&value_, -1) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
operator long() const
|
operator long() const
|
||||||
|
Reference in New Issue
Block a user