diff --git a/stl/inc/algorithm b/stl/inc/algorithm index 5510edb3d97..af08dfa626b 100644 --- a/stl/inc/algorithm +++ b/stl/inc/algorithm @@ -10274,7 +10274,7 @@ namespace ranges { auto _ULast = _RANGES _Uend(_Range); _STL_ASSERT( _UFirst != _ULast, "A range passed to std::ranges::minmax must not be empty. (N4971 [alg.min.max]/21)"); - if constexpr (forward_range<_Rng> && _Prefer_iterator_copies>) { + if constexpr (forward_range<_Rng> && _Prefer_iterator_copies) { return _Minmax_fwd_unchecked( _STD move(_UFirst), _STD move(_ULast), _STD _Pass_fn(_Pred), _STD _Pass_fn(_Proj)); } else { diff --git a/stl/inc/xutility b/stl/inc/xutility index 988196930f3..b6561c1d0fb 100644 --- a/stl/inc/xutility +++ b/stl/inc/xutility @@ -7010,7 +7010,7 @@ namespace ranges { } } #endif // _USE_STD_VECTOR_ALGORITHMS - if constexpr (forward_range<_Rng> && _Prefer_iterator_copies>) { + if constexpr (forward_range<_Rng> && _Prefer_iterator_copies) { return static_cast>(*_RANGES _Max_element_unchecked( _STD move(_UFirst), _STD move(_ULast), _STD _Pass_fn(_Pred), _STD _Pass_fn(_Proj))); } else { @@ -7228,7 +7228,7 @@ namespace ranges { } } #endif // _USE_STD_VECTOR_ALGORITHMS - if constexpr (forward_range<_Rng> && _Prefer_iterator_copies>) { + if constexpr (forward_range<_Rng> && _Prefer_iterator_copies) { return static_cast>(*_RANGES _Min_element_unchecked( _STD move(_UFirst), _STD move(_ULast), _STD _Pass_fn(_Pred), _STD _Pass_fn(_Proj))); } else {