Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert in listing 5.5 never fire #19

Open
icyhearts opened this issue Dec 29, 2021 · 0 comments
Open

assert in listing 5.5 never fire #19

icyhearts opened this issue Dec 29, 2021 · 0 comments

Comments

@icyhearts
Copy link

icyhearts commented Dec 29, 2021

Thanks for your book and code.
I tested code in listing 5.5.
The book says, in the code in Listing 5.5 the assert can fire, but I tested it and the assert never fire:

mi.U18|icefire|2021-12-29 13:06:30[muice@ listings]g++ listing_5.5.cpp -pthread
mi.U18|icefire|2021-12-29 13:07:18[muice@ listings]./a.out 
mi.U18|icefire|2021-12-29 13:07:20[muice@ listings]echo $?
0
mi.U18|icefire|2021-12-29 13:07:24[muice@ listings]./a.out 
mi.U18|icefire|2021-12-29 13:09:27[muice@ listings]echo $?
0

Test environement:
CPU: Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
g++ version: g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
os version: Ubuntu 18.04.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant