nng::socket_view::recv is missing an overload for nng::view
gregorburger opened this issue · comments
Gregor Burger commented
I needed to wrap pre-allocated memory into a buffer which i did with nng::view( T* d, size_t s )
because nng::buffer( T* d, size_t s)
will free the pointer to d so i will get double free. But unfortunately nng::socket_view::recv
has no overload for nng::view
only for nng::buffer
.
Chris Welshman commented