Re:Why should I have written ZeroMQ in C, not C++ (2012)
by JoshuaAshton on Thursday December 13, 2018 @07:45AM
(#18671892)
This forces you to allocate it on the heap... The C init function didn't require this.
[ Parent
| on HN ]
Re:Why should I have written ZeroMQ in C, not C++ (2012)
by kllrnohj on Thursday December 13, 2018 @12:42PM
(#18674279)
Have it return by value in an optional then if that's what you want. You're not forced to do it on the heap. Or if for some reason you need to be able to pick you can do the whole templated allocator song & dance.