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).