Commit ca2433c2 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed opencv_flann (with flann 1.6) compile errors on Windows (VS2005 & VS2008)

parent c52ab82b
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
#include "opencv2/core/core_c.h" #include "opencv2/core/core_c.h"
#include "opencv2/core/core.hpp" #include "opencv2/core/core.hpp"
#include "opencv2/flann/flann.hpp" #include "opencv2/flann/miniflann.hpp"
#include "opencv2/imgproc/imgproc_c.h" #include "opencv2/imgproc/imgproc_c.h"
#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/video/video.hpp" #include "opencv2/video/video.hpp"
......
...@@ -210,7 +210,7 @@ public: ...@@ -210,7 +210,7 @@ public:
break; break;
case kBitsetHash: case kBitsetHash:
// That means we can check the bitset for the presence of a key // That means we can check the bitset for the presence of a key
if (key_bitset_.test(key)) return &buckets_space_.at(key); if (key_bitset_.test(key)) return &buckets_space_.find(key)->second;
else return 0; else return 0;
break; break;
case kHash: case kHash:
......
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