Skip to content

Commit

Permalink
Fix: Overload resolution in MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Apr 29, 2024
1 parent d1be7d5 commit ccb2c73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpp/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,9 @@ template <typename key_at, typename slot_at> void test_strings() {

std::string_view str_at(std::size_t i) const noexcept { return (*strings_ptr)[i]; }
levenshtein_distance_t between(std::string_view a, std::string_view b) const {
return sz::edit_distance(sz::string_view(a), sz::string_view(b));
auto asz = sz::string_view(a);
auto bsz = sz::string_view(b);
return sz::edit_distance<char const>(asz, bsz);
}

levenshtein_distance_t operator()(member_cref_t const& a, member_cref_t const& b) const {
Expand Down

0 comments on commit ccb2c73

Please sign in to comment.