From a7b3fbdd9a8d13b0716ac9f00474b5760eb79fa5 Mon Sep 17 00:00:00 2001 From: Ruben Perez Date: Wed, 4 Oct 2023 19:06:31 +0200 Subject: [PATCH] Protect min/max --- include/boost/redis/detail/connection_base.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/redis/detail/connection_base.hpp b/include/boost/redis/detail/connection_base.hpp index 6afea4cc..331d91d5 100644 --- a/include/boost/redis/detail/connection_base.hpp +++ b/include/boost/redis/detail/connection_base.hpp @@ -405,7 +405,7 @@ public: , dbuf_{read_buffer_, max_read_size} { set_receive_response(ignore); - writer_timer_.expires_at(std::chrono::steady_clock::time_point::max()); + writer_timer_.expires_at((std::chrono::steady_clock::time_point::max)()); } /// Returns the ssl context. @@ -632,7 +632,7 @@ private: , ec_{{}} , read_size_{0} { - timer_.expires_at(std::chrono::steady_clock::time_point::max()); + timer_.expires_at((std::chrono::steady_clock::time_point::max)()); adapter_ = [this, adapter](node_type const& nd, system::error_code& ec) {