mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-05 06:33:52 +00:00
Work around Windows min/max macro problem
This commit is contained in:
parent
20c304fa01
commit
8961df0e8b
@ -546,7 +546,8 @@ class Option : public OptionBase<Option> {
|
|||||||
|
|
||||||
// Num items expected or length of vector, always at least 1
|
// Num items expected or length of vector, always at least 1
|
||||||
// Only valid for a trimming policy
|
// Only valid for a trimming policy
|
||||||
int trim_size = std::min(std::max(std::abs(get_items_expected()), 1), static_cast<int>(results_.size()));
|
int trim_size =
|
||||||
|
std::min<int>(std::max<int>(std::abs(get_items_expected()), 1), static_cast<int>(results_.size()));
|
||||||
|
|
||||||
// Operation depends on the policy setting
|
// Operation depends on the policy setting
|
||||||
if(multi_option_policy_ == MultiOptionPolicy::TakeLast) {
|
if(multi_option_policy_ == MultiOptionPolicy::TakeLast) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user