From 5626e2bde06c91dc5697bc685755f5bac6938183 Mon Sep 17 00:00:00 2001 From: fayce66 <60093074+fayce66@users.noreply.github.com> Date: Tue, 10 Jan 2023 16:16:18 +1000 Subject: [PATCH] Update rocket.hpp operator!= (like all other secondary operators) has been removed in C++20: https://en.cppreference.com/w/cpp/thread/thread/id simple fix is to use the primary operator== instead --- rocket.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocket.hpp b/rocket.hpp index 8c4e539..47d650a 100644 --- a/rocket.hpp +++ b/rocket.hpp @@ -2082,8 +2082,8 @@ namespace rocket bool is_queued() const ROCKET_NOEXCEPT { - return thread_id != std::thread::id{} - && thread_id != std::this_thread::get_id(); + return !(thread_id == std::thread::id{}) + && !(thread_id == std::this_thread::get_id()); } #ifndef ROCKET_NO_BLOCKING_CONNECTIONS