remove workarounds for old boost versions
authorbrianlheim <self@brianlheim.com>
Tue, 25 Aug 2020 22:14:29 +0000 (17:14 -0500)
committerDennis Braun <d_braun@kabelmail.de>
Wed, 16 Dec 2020 21:53:57 +0000 (21:53 +0000)
we don't need to support boost pre-1.70 anymore, and tcp::socket::executor_type was always the right typealias to use

Gbp-Pq: Name 0006-remove-workarounds-for-old-boost-versions.patch

server/supernova/sc/sc_osc_handler.hpp

index a1a30d6285545db79ce51711ce07ccfea52351af..ba767a835862add7311b8f36c9d2d74b15c32585 100644 (file)
@@ -229,11 +229,7 @@ public:
     class tcp_connection : public nova_endpoint {
     public:
         using pointer = std::shared_ptr<tcp_connection>;
-#if BOOST_VERSION >= 107000
-        using executor = boost::asio::executor;
-#else
-        using executor = boost::asio::io_context::executor_type;
-#endif
+        using executor = tcp::socket::executor_type;
 
         static pointer create(const executor& executor) { return pointer(new tcp_connection(executor)); }
 
@@ -244,11 +240,7 @@ public:
         bool operator==(tcp_connection const& rhs) const { return &rhs == this; }
 
     private:
-#if BOOST_VERSION >= 107000
         tcp_connection(const executor& executor): socket_(executor) {}
-#else
-        tcp_connection(const executor& executor): socket_(executor.context()) {}
-#endif
 
         void send(const char* data, size_t length) override final;