Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build example/websocket failed #2144

Open
Kiritimati opened this issue Apr 21, 2019 · 1 comment
Open

build example/websocket failed #2144

Kiritimati opened this issue Apr 21, 2019 · 1 comment
Labels

Comments

@Kiritimati
Copy link

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?

@fwsGonzo
Copy link
Member

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 fwsGonzo added the Bug label Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants