From d8c977b8e3cad526e0ac64893bd946cf434d0015 Mon Sep 17 00:00:00 2001 From: mcgi5sr2 Date: Tue, 18 Mar 2025 11:01:38 +0000 Subject: [PATCH] Update thread_queue.h Add parenthesis around MAX_CAPACITY evaluation to ensure it is not misinterpreted as a macro when using windows headers --- include/mqtt/thread_queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mqtt/thread_queue.h b/include/mqtt/thread_queue.h index d05e4734..b9c78753 100644 --- a/include/mqtt/thread_queue.h +++ b/include/mqtt/thread_queue.h @@ -93,7 +93,7 @@ class thread_queue using size_type = typename Container::size_type; /** The maximum capacity of the queue. */ - static constexpr size_type MAX_CAPACITY = std::numeric_limits::max(); + static constexpr size_type MAX_CAPACITY = (std::numeric_limits::max)(); private: /** Object lock */