Skip to content

Commit

Permalink
Update distance.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
icfaust authored Sep 30, 2024
1 parent 71a42f4 commit 0bee9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/oneapi/dal/algo/knn/detail/distance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct distance_accessor {

template <typename Descriptor>
distance_impl* get_distance_impl(Descriptor&& desc) {
const auto& distance = distance_accessor{}.get_distance_impl(std::forward<Descriptor>(desc));
const auto distance = distance_accessor{}.get_distance_impl(std::forward<Descriptor>(desc));
return distance ? distance->get_impl() : nullptr;
}

Expand Down

0 comments on commit 0bee9d6

Please sign in to comment.