mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
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:
parent
6704b9b3ab
commit
f3e0846ee5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user