Commit a73b509b authored by Marius Muja's avatar Marius Muja

Clang compilation fixes, closes #1432

parent 5eee9e6f
...@@ -30,6 +30,12 @@ struct empty_any ...@@ -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 struct base_any_policy
{ {
virtual void static_delete(void** x) = 0; virtual void static_delete(void** x) = 0;
......
...@@ -56,7 +56,7 @@ namespace cvflann ...@@ -56,7 +56,7 @@ namespace cvflann
struct LshIndexParams : public IndexParams 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; (* this)["algorithm"] = FLANN_INDEX_LSH;
// The number of hash tables to use // The number of hash tables to use
......
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