Clang compilation fixes, closes #1432
authorMarius Muja <no@email>
Tue, 18 Oct 2011 18:37:47 +0000 (18:37 +0000)
committerMarius Muja <no@email>
Tue, 18 Oct 2011 18:37:47 +0000 (18:37 +0000)
modules/flann/include/opencv2/flann/any.h
modules/flann/include/opencv2/flann/lsh_index.h

index 0a5f468..ca37487 100644 (file)
@@ -30,6 +30,12 @@ struct empty_any
 {
 };
 
+inline std::ostream& operator <<(std::ostream& out, const empty_any&)
+{
+    out << "[empty_any]";
+    return out;
+}
+
 struct base_any_policy
 {
     virtual void static_delete(void** x) = 0;
index a050c3c..4680653 100644 (file)
@@ -56,7 +56,7 @@ namespace cvflann
 
 struct LshIndexParams : public IndexParams
 {
-    LshIndexParams(unsigned int table_number, unsigned int key_size, unsigned int multi_probe_level)
+    LshIndexParams(unsigned int table_number = 12, unsigned int key_size = 20, unsigned int multi_probe_level = 2)
     {
         (* this)["algorithm"] = FLANN_INDEX_LSH;
         // The number of hash tables to use