Skip to content

Commit

Permalink
My mistake. Crow is compiled with c++11 under windows and has a macro…
Browse files Browse the repository at this point in the history
… for std::min not being defined as std::min(a,b) under c++11, CROW_MIN
  • Loading branch information
jfm authored and gittiver committed Jan 1, 2024
1 parent 6704b9b commit f3e0846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/crow/http_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f3e0846

Please sign in to comment.