Haven't looked deeply enough to comment on the need for this (vs using shared_ptr).
In any case, we don't need the extra allocation for mp::Void. The following should work (but I haven't tested):
auto const protobuf_void = new mp::Void; // ...shudder... server.allocate_buffers(&request, protobuf_void,...)
« Back to merge proposal
Haven't looked deeply enough to comment on the need for this (vs using shared_ptr).
In any case, we don't need the extra allocation for mp::Void. The following should work (but I haven't tested):
auto const protobuf_void = new mp::Void; // ...shudder... allocate_ buffers( &request, protobuf_void,...)
server.