3 ms·
Exaggerated example to show a pattern. A (hopefully) less outrageous (but still bad!) example of the dangers of sequencing: foo(std::unique_ptr<T1>{new T1
by praptak 13y ago
Exaggerated example to show a pattern. A (hopefully) less outrageous (but still bad!) example of the dangers of sequencing:
foo(std::unique_ptr<T1>{new T1 },
std::unique_ptr<T2>{new T2 });
This one's from GotW #102.
- alok-g 13y agoThanks. Just read the GotW. http://herbsutter.com/gotw/_102/ http://herbsutter.com/gotw/_102/