|
Boost Users : |
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-30 16:31:27
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net