
26 Nov
2009
26 Nov
'09
10:25 p.m.
On Tue, Nov 24, 2009 at 6:59 PM, OvermindDL1 <overminddl1@gmail.com> wrote:
On Tue, Nov 24, 2009 at 3:35 AM, Tim Blechmann <tim@klingt.org> wrote:
the documentation is available at: http://tim.klingt.org/boost_lockfree/
According to:
http://tim.klingt.org/boost_lockfree/lockfree/reference.html#lockfree.refere...
Prefix Operators
T operator ++(void);
Effect: increments value
Returns: value before incrementing
Shouldn't ++x return the value *after* incrementing? #include<iostream> int main(void) { int x = 3; std::cout << ++x << std::endl; // prints "4" } I haven't tested the actual library though, so I hope this is just an error in the docs. Sincerely, AmkG