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

How to compile sleepy discord with boost asio instead of regular asio #190

Open
GriffWithTwoFs opened this issue Nov 16, 2020 · 2 comments

Comments

@GriffWithTwoFs
Copy link

I am using a library in boost called beast to simultaneous host a web server while running my bot. I get the following errors when I try to compile both in the same file. I'm thinking this has something to do with including two different ASIOs in the same file.

include/sleepy_discord/websocketpp_websocket.h:24:46: error: invalid covariant return type for ‘virtual boost::asio::io_service& SleepyDiscord::WebsocketppScheduleHandler::getIOService()’
24 | inline websocketpp::lib::asio::io_service& getIOService() override {

include/sleepy_discord/asio_schedule.h:17:29: note: overridden function is ‘virtual asio::io_service& SleepyDiscord::ASIOBasedScheduleHandler::getIOService()’
17 | virtual asio::io_service& getIOService() = 0;

Does anyone know how to resolve this?

@yourWaifu
Copy link
Owner

yourWaifu commented Nov 17, 2020

The library currently has issues with including boost asio but I have been working on it. You'll see some commits to develop about it very soon.

@GriffWithTwoFs
Copy link
Author

GriffWithTwoFs commented Nov 18, 2020

Thank you! Looking forward to the boost Asio library resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants