apolukhin / Boost-Cookbook

Online examples from "Boost C++ Application Development Cookbook":
http://apolukhin.github.io/Boost-Cookbook/
Boost Software License 1.0
407 stars 108 forks source link

global_i doesn't exist, see comment assert(global_i == 0); // Oops! #12

Closed blockspacer closed 1 year ago

blockspacer commented 1 year ago

global_i not declared

What assert(global_i == 0); // Oops! means?

See https://github.com/apolukhin/Boost-Cookbook/blob/912e36f38b9b1da93b03ae7afd19fcec0900aa83/Chapter05/02_mutex/main.cpp#L40

apolukhin commented 1 year ago

Thanks for the report! It should be shared_i

Fixed in the sources