From 00ccfe99089adc7b21e279845aa5e93ee75f3a18 Mon Sep 17 00:00:00 2001 From: Andre Schulz Date: Wed, 12 Apr 2023 20:28:19 +0200 Subject: [PATCH] SFM: Correctly declare array data type in std::unique_ptr --- libs/sfm/cascade_hashing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sfm/cascade_hashing.h b/libs/sfm/cascade_hashing.h index 048330925..8b63cc1cb 100644 --- a/libs/sfm/cascade_hashing.h +++ b/libs/sfm/cascade_hashing.h @@ -357,7 +357,7 @@ CascadeHashing::oneway_match (Matching::Options const& matching_opts, top_candidates.reserve(max_num_candidates); - std::unique_ptr tmp(new T[max_num_candidates * descriptor_length]); + std::unique_ptr tmp(new T[max_num_candidates * descriptor_length]); NearestNeighbor nn; nn.set_elements(tmp.get()); nn.set_element_dimensions(descriptor_length);