Skip to content

Commit d9cd39e

Browse files
committed
is-identity
1 parent e0fa25c commit d9cd39e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__algorithm/ranges_stable_sort.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct __stable_sort {
4848

4949
auto&& __projected_comp = std::__make_projected(__comp, __proj);
5050
constexpr auto __default_comp = is_same_v<_Comp, ranges::less>;
51-
constexpr auto __default_proj = is_same_v<_Proj, identity>;
51+
constexpr auto __default_proj = __is_identity<_Proj>::value;
5252
constexpr auto __integral_value = is_integral_v<iter_value_t<_Iter>>;
5353
constexpr auto __integral_projection = __default_proj && __integral_value;
5454
// constexpr auto __integral_projection = is_integral_v<remove_reference_t<invoke_result_t<_Proj&,

0 commit comments

Comments
 (0)