cwzx / nngpp

C++ wrapper around the nanomsg NNG API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nng::socket_view::recv is missing an overload for nng::view

gregorburger opened this issue · comments

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.