diff --git a/stl/inc/algorithm b/stl/inc/algorithm index 5510edb3d9..af08dfa626 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 a27f3bec06..4e4489769a 100644 --- a/stl/inc/xutility +++ b/stl/inc/xutility @@ -7005,7 +7005,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 { @@ -7223,7 +7223,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 {