IncludeOS icon indicating copy to clipboard operation
IncludeOS copied to clipboard

build example/websocket failed

Open Kiritimati opened this issue 5 years ago • 1 comments

Build /example/websocket failed at 2 errors:

/home/myvirtual/includeos/includeos/x86_64/include/libcxx/memory:3957:1: error: no type named ‘type’ in ‘struct std::__1::enable_if<false, std::__1::shared_ptr<std::__1::vector<unsigned char, std::experimental::fundamentals_v1::pmr::polymorphic_allocator > >::__nat>’ shared_ptr<_Tp>::shared_ptr(_Yp* __p,

error: no matching function for call to ‘net::WebSocket::write(std::__1::shared_ptr<std::__1::vector >)’ ws->write(msg->extract_shared_vector()); ^~

Is it a bug? What shuold I do?

Kiritimati avatar Apr 21 '19 06:04 Kiritimati

Yea, thats a bug. It happened after a change from a normal vector to one using a polymorphic allocator. Probably a simple fix as its just a matter of changing the extract_shared_vector function return type.

fwsGonzo avatar Apr 24 '19 19:04 fwsGonzo