Commit 5cee2563 authored by Davis King's avatar Davis King

A minor change to avoid a compiler warning from clang

parent 1153e056
...@@ -159,7 +159,8 @@ namespace dlib ...@@ -159,7 +159,8 @@ namespace dlib
hashes.resize(samples.size()); hashes.resize(samples.size());
typedef impl::hash_block<vector_type,hash_function_type> block_type; typedef impl::hash_block<vector_type,hash_function_type> block_type;
parallel_for(num_threads, 0, samples.size(), block_type(samples, hash_funct, hashes)); block_type temp(samples, hash_funct, hashes);
parallel_for(num_threads, 0, samples.size(), temp);
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
...@@ -201,7 +202,8 @@ namespace dlib ...@@ -201,7 +202,8 @@ namespace dlib
hash_samples(samples, hash_funct, num_threads, hashes); hash_samples(samples, hash_funct, num_threads, hashes);
typedef impl::scan_find_k_nearest_neighbors_lsh<vector_type, distance_function_type,hash_function_type,alloc> scan_type; typedef impl::scan_find_k_nearest_neighbors_lsh<vector_type, distance_function_type,hash_function_type,alloc> scan_type;
parallel_for(num_threads, 0, hashes.size(), scan_type(samples, dist_funct, hash_funct, k, edges, k_oversample, hashes)); scan_type temp(samples, dist_funct, hash_funct, k, edges, k_oversample, hashes);
parallel_for(num_threads, 0, hashes.size(), temp);
remove_duplicate_edges(edges); remove_duplicate_edges(edges);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment