From f3e0846ee5f8bc484bc2bc393c4aefd7fc3ed627 Mon Sep 17 00:00:00 2001 From: jfm Date: Fri, 29 Dec 2023 12:52:10 +0100 Subject: [PATCH] My mistake. Crow is compiled with c++11 under windows and has a macro for std::min not being defined as std::min(a,b) under c++11, CROW_MIN --- include/crow/http_connection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/crow/http_connection.h b/include/crow/http_connection.h index a483798f3..5671d5f0b 100644 --- a/include/crow/http_connection.h +++ b/include/crow/http_connection.h @@ -442,7 +442,7 @@ namespace crow size_t length = res.body.length(); for(size_t transferred = 0; transferred < length;) { - size_t to_transfer = std::min(16384UL, length-transferred); + size_t to_transfer = CROW_MIN(16384UL, length-transferred); buffers[0] = asio::const_buffer(data+transferred, to_transfer); do_write_sync(buffers); transferred += to_transfer;