Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save awesomebytes/25db36771b50198747ab9ec66e336dc6 to your computer and use it in GitHub Desktop.

Select an option

Save awesomebytes/25db36771b50198747ab9ec66e336dc6 to your computer and use it in GitHub Desktop.
Remove error: conflicting declaration 'typedef class boost::asio::io_context boost::asio::io_service' typedef io_context io_service
From 1e2dade59718cfcd96e712fdf91be99524d7cac1 Mon Sep 17 00:00:00 2001
From: Sammy Pfeiffer <[email protected]>
Date: Tue, 10 Dec 2019 19:18:06 +1100
Subject: [PATCH 1/1] Substitute declaration of boost:asio for boost 1.71.0
---
qi/eventloop.hpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/qi/eventloop.hpp b/qi/eventloop.hpp
index 5ed18d3..4c7db23 100644
--- a/qi/eventloop.hpp
+++ b/qi/eventloop.hpp
@@ -25,10 +25,7 @@
# pragma warning( disable: 4996 ) // TODO: Reactivate this warning once msvc stop triggerring a warning on overloading a deprecated function
# endif
-namespace boost {
- namespace asio {
- class io_service;
-}}
+# include <boost/asio.hpp>
namespace qi
{
--
2.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment