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 */