Skip to content

Commit

Permalink
SFM: Correctly declare array data type in std::unique_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-schulz committed Aug 23, 2024
1 parent 7c50bea commit 00ccfe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/sfm/cascade_hashing.h
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ CascadeHashing::oneway_match (Matching::Options const& matching_opts,

top_candidates.reserve(max_num_candidates);

std::unique_ptr<T> tmp(new T[max_num_candidates * descriptor_length]);
std::unique_ptr<T[]> tmp(new T[max_num_candidates * descriptor_length]);
NearestNeighbor<T> nn;
nn.set_elements(tmp.get());
nn.set_element_dimensions(descriptor_length);
Expand Down

0 comments on commit 00ccfe9

Please sign in to comment.