Skip to content

Commit 22121c1

Browse files
committed
Fix copy-paste error in C++20 mode
1 parent 71deba7 commit 22121c1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

include/cpp-sort/sorters/spread_sorter/string_spread_sorter.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ namespace cppsort
145145
auto operator()(RandomAccessIterator first, RandomAccessIterator last,
146146
std::ranges::greater compare, Projection projection={}) const
147147
-> detail::enable_if_t<
148-
std::is_same_v_v<projected_t<RandomAccessIterator, Projection>, std::string>
149-
|| std::is_same_v_v<projected_t<RandomAccessIterator, Projection>, std::string_view>
148+
std::is_same_v<projected_t<RandomAccessIterator, Projection>, std::string>
149+
|| std::is_same_v<projected_t<RandomAccessIterator, Projection>, std::string_view>
150150
>
151151
{
152152
static_assert(
@@ -170,8 +170,8 @@ namespace cppsort
170170
auto operator()(RandomAccessIterator first, RandomAccessIterator last,
171171
std::ranges::greater compare, Projection projection={}) const
172172
-> detail::enable_if_t<(
173-
std::is_same_v_v<projected_t<RandomAccessIterator, Projection>, std::wstring>
174-
|| std::is_same_v_v<projected_t<RandomAccessIterator, Projection>, std::wstring_view>
173+
std::is_same_v<projected_t<RandomAccessIterator, Projection>, std::wstring>
174+
|| std::is_same_v<projected_t<RandomAccessIterator, Projection>, std::wstring_view>
175175
) && (sizeof(wchar_t) == 2)
176176
>
177177
{

0 commit comments

Comments
 (0)