mirror of
				https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
				synced 2024-08-15 00:33:12 +00:00 
			
		
		
		
	crow: fix for Boost 1.70
This commit is contained in:
		
							parent
							
								
									89e6b48c2c
								
							
						
					
					
						commit
						76a0efa8ee
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -4,6 +4,11 @@
 | 
			
		|||
#include <boost/asio/ssl.hpp>
 | 
			
		||||
#endif
 | 
			
		||||
#include "crow/settings.h"
 | 
			
		||||
#if BOOST_VERSION >= 107000
 | 
			
		||||
#define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s).get_executor().context())
 | 
			
		||||
#else
 | 
			
		||||
#define GET_IO_SERVICE(s) ((s).get_io_service())
 | 
			
		||||
#endif
 | 
			
		||||
namespace crow
 | 
			
		||||
{
 | 
			
		||||
    using namespace boost;
 | 
			
		||||
| 
						 | 
				
			
			@ -19,7 +24,7 @@ namespace crow
 | 
			
		|||
 | 
			
		||||
        boost::asio::io_service& get_io_service()
 | 
			
		||||
        {
 | 
			
		||||
            return socket_.get_io_service();
 | 
			
		||||
            return GET_IO_SERVICE(socket_);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        tcp::socket& raw_socket()
 | 
			
		||||
| 
						 | 
				
			
			@ -94,7 +99,7 @@ namespace crow
 | 
			
		|||
 | 
			
		||||
        boost::asio::io_service& get_io_service()
 | 
			
		||||
        {
 | 
			
		||||
            return raw_socket().get_io_service();
 | 
			
		||||
            return GET_IO_SERVICE(raw_socket());
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        template <typename F> 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue