Skip to content

Commit a7b3fbd

Browse files
committed
Protect min/max
1 parent 5ea0d3c commit a7b3fbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/redis/detail/connection_base.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ class connection_base {
405405
, dbuf_{read_buffer_, max_read_size}
406406
{
407407
set_receive_response(ignore);
408-
writer_timer_.expires_at(std::chrono::steady_clock::time_point::max());
408+
writer_timer_.expires_at((std::chrono::steady_clock::time_point::max)());
409409
}
410410

411411
/// Returns the ssl context.
@@ -632,7 +632,7 @@ class connection_base {
632632
, ec_{{}}
633633
, read_size_{0}
634634
{
635-
timer_.expires_at(std::chrono::steady_clock::time_point::max());
635+
timer_.expires_at((std::chrono::steady_clock::time_point::max)());
636636

637637
adapter_ = [this, adapter](node_type const& nd, system::error_code& ec)
638638
{

0 commit comments

Comments
 (0)