News for hackers. Stuff that matters.
Re:Why should I have written ZeroMQ in C, not C++ by jmq 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);
Re:Why should I have written ZeroMQ in C, not C++ by evincarofautumn on Friday May 11, 2012 @12:40PM (#3960065)
Cool, thanks for the tip. I meant to offer an example for the general case.