
10 Apr
2009
10 Apr
'09
5:21 p.m.
JOAQUIN M. LOPEZ MUÑOZ:
Hi,
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.