Error when compiling with uv-cpp 1.4.5
dselivanov opened this issue · 2 comments
dselivanov commented
Trying to compile latest version.
I'm getting:
uvnsq/NsqLookupd.cpp:64:21: error: non-const lvalue reference to type 'uv::SocketAddr' cannot bind to a temporary of type 'uv::SocketAddr'
client->Req((uv::SocketAddr)addr, req);
Seems related to HttpClient.cpp#L41.
Changing signature to Req(uv::SocketAddr addr, Request& req)
solves the problem.
Would be nice to add to the README.md a version number of uv-cpp which works with uvnsq.
wlgq2 commented
thank for your feedback。
it's my mistake.
i will make sure uvnsq supports the last version of uv-cpp.
it‘s because i compiled successfully with visual studio,but did not check the compilation of gcc。
I fixed this problem
dselivanov commented
Thanks for the quick fix. I can confirm problem resolved.