Subject: Re: [boost] atomic_count::operator++ return type
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-04-10 13:21:49
JOAQUIN M. LOPEZ MUÑOZ:
> Some of the implementations of boost::detail::atomic_count::operator++
> return a long (vg. Win32) while for others the return type is void.
> Is it feasible to change this so that a long (i.e. the value of the atomic
> count after incrementing) is returned always?
> As it happens, I have a usage case for this in Boost.Flyweight.
What memory visibility guarantees does your use case need? op++ returns no
value because it currently promises no visibility guarantees.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk