From 3df72fe669d27893fae2cffa6287ad8abdcac84f Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Thu, 12 Jul 2012 16:02:02 +0000 Subject: [PATCH] fix gcc C++11 bug mentioned in http://answers.opencv.org/question/283 . Bug also fixed in FLANN upstream --- modules/flann/include/opencv2/flann/lsh_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/flann/include/opencv2/flann/lsh_table.h b/modules/flann/include/opencv2/flann/lsh_table.h index cb9e05fa26..126fb2a992 100644 --- a/modules/flann/include/opencv2/flann/lsh_table.h +++ b/modules/flann/include/opencv2/flann/lsh_table.h @@ -193,7 +193,7 @@ public: void add(Matrix dataset) { #if USE_UNORDERED_MAP - if (!use_speed_) buckets_space_.rehash((buckets_space_.size() + dataset.rows) * 1.2); + buckets_space_.rehash((buckets_space_.size() + dataset.rows) * 1.2); #endif // Add the features to the table for (unsigned int i = 0; i < dataset.rows; ++i) add(i, dataset[i]);