GotW #89 Solution: Smart Pointers | Sutter’s Mill
@herb There are three major reasons to say “when in doubt, prefer unique_ptr.” well I have one reason to prefer SP: by default it is “thread safe” (big “”) aka afaik (this is ok, but wasteful) while (!sp) {} //use sp (this is not ok) while (!up) {} //use ...