We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0fa25c commit d9cd39eCopy full SHA for d9cd39e
libcxx/include/__algorithm/ranges_stable_sort.h
@@ -48,7 +48,7 @@ struct __stable_sort {
48
49
auto&& __projected_comp = std::__make_projected(__comp, __proj);
50
constexpr auto __default_comp = is_same_v<_Comp, ranges::less>;
51
- constexpr auto __default_proj = is_same_v<_Proj, identity>;
+ constexpr auto __default_proj = __is_identity<_Proj>::value;
52
constexpr auto __integral_value = is_integral_v<iter_value_t<_Iter>>;
53
constexpr auto __integral_projection = __default_proj && __integral_value;
54
// constexpr auto __integral_projection = is_integral_v<remove_reference_t<invoke_result_t<_Proj&,
0 commit comments