mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
Merge pull request #109 from Chuvi-w/fix_std_min_conflict
Fix std::min conflict with min/max definitions from windows.h
This commit is contained in:
commit
801e2ef343
@ -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_t>(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