Bring back C++17 minimal requirement. (#475)

This commit is contained in:
Arthur Sonzogni
2022-09-03 12:12:59 +02:00
committed by ArthurSonzogni
parent 1d76a2321c
commit c8ec151154
10 changed files with 42 additions and 33 deletions

View File

@@ -266,12 +266,12 @@ Component Slider(ConstStringRef label,
ConstRef<int> min,
ConstRef<int> max,
ConstRef<int> increment) {
auto slider = Make<SliderBase<int>>(SliderOption<int>({
.value = value,
.min = min,
.max = max,
.increment = increment,
}));
SliderOption<int> option;
option.value = value;
option.min = min;
option.max = max;
option.increment = increment;
auto slider = Make<SliderBase<int>>(option);
return Make<SliderWithLabel>(label, slider);
}
@@ -280,12 +280,12 @@ Component Slider(ConstStringRef label,
ConstRef<float> min,
ConstRef<float> max,
ConstRef<float> increment) {
auto slider = Make<SliderBase<float>>(SliderOption<float>({
.value = value,
.min = min,
.max = max,
.increment = increment,
}));
SliderOption<float> option;
option.value = value;
option.min = min;
option.max = max;
option.increment = increment;
auto slider = Make<SliderBase<float>>(option);
return Make<SliderWithLabel>(label, slider);
}
Component Slider(ConstStringRef label,
@@ -293,12 +293,12 @@ Component Slider(ConstStringRef label,
ConstRef<long> min,
ConstRef<long> max,
ConstRef<long> increment) {
auto slider = Make<SliderBase<long>>(SliderOption<long>({
.value = value,
.min = min,
.max = max,
.increment = increment,
}));
SliderOption<long> option;
option.value = value;
option.min = min;
option.max = max;
option.increment = increment;
auto slider = Make<SliderBase<long>>(option);
return Make<SliderWithLabel>(label, slider);
}