[boost.thread] Documentation code error

16 Mar
2013
16 Mar
'13
8:45 p.m.
Hello, In the chapter about synchronization in the boost.thread documentation, where the hello world example with the bank account is being shown, I see a small problem in the class: int GetBalance() { mtx_.lock(); int b = balance_; mtx_.unlock(); return balance_; } I believe it should be: int GetBalance() { mtx_.lock(); int b = balance_; mtx_.unlock(); return b; } Kind regards, Philip Bennefall
4422
Age (days ago)
4422
Last active (days ago)
0 comments
1 participants
participants (1)
-
Philip Bennefall