Hacker News new | ask | show | jobs
by basman 5148 days ago
Or, perhaps easier:

scoped_ptr<Image> image(allocate_image(...));