Herb Sutter: Effective Concurrency: Use Lock Hierarchies to Avoid DeadlockEffective Concurrency: Break Amdahl’s Law! » GotW #88: A Candidate For ...
Herb Sutter: Effective Concurrency: Use Lock Hierarchies to Avoid DeadlockEffective Concurrency: Break Amdahl’s Law! » GotW #88: A Candidate For ...
I'm using the PIMPL idiom, and specifically I'm using the template provided from this post. Given the set of classes below and compiling with VS2015 U ...
In the GotW article #45, Herb states the following: This if-condition is not thread-safe. For one thing, evaluating even "data_->refs > 1" ...
In Herb Sutter's When Is a Container Not a Container?, he shows an example of taking a pointer into a container: Then follows it up with an "improv ...
In GotW 94, Herb Sutter draws a distinction between the "classic C++" declaration and the "modern" style He tells us that there's a "subtle diff ...
Herb Sutter's Guru of the Week #4, "Class Mechanics", teaches that the "a op b" form of an overloaded operator should be implemented in terms of the " ...
This pseudo-code was obtained from GotW #53 under the subtitle "A Not-So-Good Long-Term Solution". I've been trying to understand for a few hours alre ...
I was reading comments on Herb Sutter's Guru of the Week redux about virtual functions, and finally saw him mentioning this: [...] “uses of final ...
Taken from: http://herbsutter.com/2013/05/22/gotw-5-solution-overriding-virtual-functions/ Why should we write: Instead of just: My only guess ...
According to GOTW #56, there is a potential classic memory leak and exception safety issues in the following code: The reason is that when we new T ...
Recently, I was reading the post: Double or Nothing from GOTW by Herb Sutter I am a little confused with the explanation of the following program: ...
First read Herb's Sutters GotW posts concerning pimpl in C++11: GotW #100: Compilation Firewalls (Difficulty: 6/10) GotW #101: Compilation Firew ...
Gotw 80 includes the following example: The article goes to discuss why the line s = f() is incorrect - due to object lifetimes and order of constr ...
There is a example in http://www.gotw.ca/gotw/067.htm When you change the double to float, it's a infinite loop in VS2008. According to the Gotw ex ...
Referring to article Gotw 54 by HerbSutter, he explains about The Right Way To "Shrink-To-Fit" a vector or deque and The Right Way to Complete ...