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 31, 2024
1 parent 3c091d2 commit 1014e8f
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 1014e8f

Please sign in to comment.