forked from boostorg/smart_ptr
Fixed operator--
[SVN r23210]
This commit is contained in:
1 parent
e1bd18f6a6
commit
7361e476b8
1 file changed
+1
-1
@@ -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