Skip to content

Commit 182764c

Browse files
fix error
1 parent dffc387 commit 182764c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pack_find.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace mlib
3939
{
4040
return (value_is_value<indexes, pack, value_to_find>{}() + ...);
4141
}(std::make_index_sequence<sizeof...(pack)>{});
42-
if constexpr ((x == 0) && mlib::first<pack...>{}() == value_to_find)
42+
if constexpr ((x == 0) && mlib::first<pack...>{}() != value_to_find)
4343
{
4444
return -1;
4545
}

0 commit comments

Comments
 (0)