mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-11-07 11:21:36 +01:00
Add support for g++-9 compiler
Summary: related to #7, T13767 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D29302
This commit is contained in:
@@ -34,11 +34,10 @@ private:
|
||||
Handler _handler;
|
||||
public:
|
||||
tracked_op(Handler&& h, const Executor& ex) :
|
||||
_executor(tracking_executor(h, ex)),
|
||||
_handler(std::move(h))
|
||||
_executor(tracking_executor(h, ex)), _handler(std::move(h))
|
||||
{}
|
||||
|
||||
tracked_op(tracked_op&&) noexcept = default;
|
||||
tracked_op(tracked_op&&) = default;
|
||||
tracked_op(const tracked_op&) = delete;
|
||||
|
||||
using executor_type = tracking_type<Handler, Executor>;
|
||||
|
||||
@@ -31,7 +31,7 @@ public:
|
||||
)
|
||||
{}
|
||||
|
||||
cancellable_handler(cancellable_handler&& other) noexcept = default;
|
||||
cancellable_handler(cancellable_handler&&) = default;
|
||||
cancellable_handler(const cancellable_handler&) = delete;
|
||||
|
||||
using executor_type = tracking_type<Handler, Executor>;
|
||||
|
||||
@@ -45,8 +45,7 @@ public:
|
||||
const std::shared_ptr<client_service>& svc_ptr,
|
||||
DisconnectContext&& context, Handler&& handler
|
||||
) :
|
||||
_svc_ptr(svc_ptr),
|
||||
_context(std::move(context)),
|
||||
_svc_ptr(svc_ptr), _context(std::move(context)),
|
||||
_handler(std::move(handler), _svc_ptr->get_executor())
|
||||
{
|
||||
auto slot = asio::get_associated_cancellation_slot(_handler);
|
||||
@@ -56,7 +55,7 @@ public:
|
||||
});
|
||||
}
|
||||
|
||||
disconnect_op(disconnect_op&&) noexcept = default;
|
||||
disconnect_op(disconnect_op&&) = default;
|
||||
disconnect_op(const disconnect_op&) = delete;
|
||||
|
||||
using executor_type = asio::associated_executor_t<handler_type>;
|
||||
@@ -185,7 +184,7 @@ public:
|
||||
_handler(std::move(handler), _svc_ptr->get_executor())
|
||||
{}
|
||||
|
||||
terminal_disconnect_op(terminal_disconnect_op&&) noexcept = default;
|
||||
terminal_disconnect_op(terminal_disconnect_op&&) = default;
|
||||
terminal_disconnect_op(const terminal_disconnect_op&) = delete;
|
||||
|
||||
using executor_type = asio::associated_executor_t<handler_type>;
|
||||
|
||||
@@ -33,7 +33,7 @@ public:
|
||||
_owner(owner), _handler(std::move(handler))
|
||||
{}
|
||||
|
||||
resolve_op(resolve_op&&) noexcept = default;
|
||||
resolve_op(resolve_op&&) = default;
|
||||
resolve_op(const resolve_op&) = delete;
|
||||
|
||||
using executor_type = asio::associated_executor_t<handler_type>;
|
||||
|
||||
@@ -79,7 +79,7 @@ public:
|
||||
});
|
||||
}
|
||||
|
||||
publish_send_op(publish_send_op&&) noexcept = default;
|
||||
publish_send_op(publish_send_op&& other) = default;
|
||||
publish_send_op(const publish_send_op&) = delete;
|
||||
|
||||
using executor_type = asio::associated_executor_t<handler_type>;
|
||||
|
||||
@@ -30,7 +30,7 @@ public:
|
||||
_handler(std::move(handler))
|
||||
{}
|
||||
|
||||
read_op(read_op&&) noexcept = default;
|
||||
read_op(read_op&&) = default;
|
||||
read_op(const read_op&) = delete;
|
||||
|
||||
using executor_type = asio::associated_executor_t<handler_type>;
|
||||
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
_handler(std::forward<Handler>(handler))
|
||||
{}
|
||||
|
||||
reconnect_op(reconnect_op&&) noexcept = default;
|
||||
reconnect_op(reconnect_op&&) = default;
|
||||
reconnect_op(const reconnect_op&) = delete;
|
||||
|
||||
using executor_type = asio::associated_executor_t<handler_type>;
|
||||
|
||||
@@ -56,8 +56,8 @@ public:
|
||||
});
|
||||
}
|
||||
|
||||
subscribe_op(subscribe_op&&) noexcept = default;
|
||||
subscribe_op(const subscribe_op&) noexcept = delete;
|
||||
subscribe_op(subscribe_op&&) = default;
|
||||
subscribe_op(const subscribe_op&) = delete;
|
||||
|
||||
using executor_type = asio::associated_executor_t<handler_type>;
|
||||
executor_type get_executor() const noexcept {
|
||||
|
||||
@@ -51,8 +51,8 @@ public:
|
||||
});
|
||||
}
|
||||
|
||||
unsubscribe_op(unsubscribe_op&&) noexcept = default;
|
||||
unsubscribe_op(const unsubscribe_op&) noexcept = delete;
|
||||
unsubscribe_op(unsubscribe_op&&) = default;
|
||||
unsubscribe_op(const unsubscribe_op&) = delete;
|
||||
|
||||
using executor_type = asio::associated_executor_t<handler_type>;
|
||||
executor_type get_executor() const noexcept {
|
||||
|
||||
@@ -22,11 +22,10 @@ class write_op {
|
||||
|
||||
public:
|
||||
write_op(Owner& owner, Handler&& handler) :
|
||||
_owner(owner),
|
||||
_handler(std::move(handler))
|
||||
_owner(owner), _handler(std::move(handler))
|
||||
{}
|
||||
|
||||
write_op(write_op&&) noexcept = default;
|
||||
write_op(write_op&&) = default;
|
||||
write_op(const write_op&) = delete;
|
||||
|
||||
using executor_type = asio::associated_executor_t<handler_type>;
|
||||
|
||||
Reference in New Issue
Block a user