
30 Jul
2008
30 Jul
'08
8:31 p.m.
AMDG Alexander Gutenev wrote:
I come to an implementation of this. As i'm sure this was coded many times before, two questions: (1) Why stock implementation of intrusive counter is not included to Smart Pointers library ?
No idea. This was requested recently on the devel list, but didn't receive an answer. http://lists.boost.org/Archives/boost/2008/06/139048.php
(2) Is there something wrong with my code ?
It will only compile on windows...
long operator++(void) { return ::InterlockedIncrement(&count_); } long operator--(void) { return ::InterlockedDecrement(&count_);
In Christ, Steven Watanabe