|
|
Subscribe / Log in / New account

Or You Could Simplify The Error-Recovery Paths

Or You Could Simplify The Error-Recovery Paths

Posted Dec 31, 2014 11:17 UTC (Wed) by rleigh (guest, #14622)
In reply to: Or You Could Simplify The Error-Recovery Paths by cesarb
Parent article: The "too small to fail" memory-allocation rule

Yes, either works for the example above (I originally wrote it to use shared_ptr but updated the example to use unique_ptr).


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds