News for hackers. Stuff that matters.

jmq

Re:Why should I have written ZeroMQ in C, not C++ on Friday May 11, 2012 @12:31AM (#3957654)
You can reduce verbosity of the code by passing destructor function directly to unique_ptr constructor:

    std::unique_ptr<Image, void (*)(Image *)>(image, deallocate_image);