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

This commit is contained in:
jfm 2023-12-29 12:52:10 +01:00 committed by gittiver
parent 6704b9b3ab
commit f3e0846ee5

View File

@ -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;