mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 23:24:39 +00:00
Fix std::min conflict with min/max definitions from windows.h
This commit is contained in:
parent
e1ea7ec50a
commit
14fd4c6d5b
@ -99,7 +99,7 @@ template <typename T> std::string repr(T const &val) {
|
||||
out << repr(*val.begin());
|
||||
std::for_each(
|
||||
std::next(val.begin()),
|
||||
std::next(val.begin(), std::min(size, repr_max_container_size) - 1),
|
||||
std::next(val.begin(), (std::min)(size, repr_max_container_size) - 1),
|
||||
[&out](const auto &v) { out << " " << repr(v); });
|
||||
if (size <= repr_max_container_size)
|
||||
out << " ";
|
||||
|
Loading…
Reference in New Issue
Block a user