forked from boostorg/smart_ptr
Fixed operator--
[SVN r23210]
This commit is contained in:
@ -38,7 +38,7 @@ public:
|
||||
|
||||
long operator--()
|
||||
{
|
||||
return !__exchange_and_add(&value_, -1);
|
||||
return __exchange_and_add(&value_, -1) - 1;
|
||||
}
|
||||
|
||||
operator long() const
|
||||
|
Reference in New Issue
Block a user