From 1f5c2c0fcb761a7be182e6fa78c2639cdac21ee8 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Thu, 25 Apr 2024 11:41:51 +0800 Subject: [PATCH] Replace one improper use of `_Iter_value_t` with `iter_value_t` As the use of `_Iter_value_t` appeared within the implementation details of C++20 `ranges::stable_sort`, it should be replaced with `iter_value_t`. --- stl/inc/algorithm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stl/inc/algorithm b/stl/inc/algorithm index 8aab1113539..e11db95693e 100644 --- a/stl/inc/algorithm +++ b/stl/inc/algorithm @@ -8852,7 +8852,7 @@ namespace ranges { return; } - _Optimistic_temporary_buffer<_Iter_value_t<_It>> _Temp_buf{_Count - _Count / 2}; + _Optimistic_temporary_buffer> _Temp_buf{_Count - _Count / 2}; _Stable_sort_common_buffered( _STD move(_First), _STD move(_Last), _Count, _Temp_buf._Data, _Temp_buf._Capacity, _Pred, _Proj); }