diff --git a/src/cpp/flann/util/lsh_table.h b/src/cpp/flann/util/lsh_table.h index f023fb4cbb7aa14aad5583d7e3d67aa1d2e8f943..d6057235c3e4c3983e89f074e98d6f01e88ee5f3 100644 --- a/src/cpp/flann/util/lsh_table.h +++ b/src/cpp/flann/util/lsh_table.h @@ -234,8 +234,7 @@ public: size_t getKey(const ElementType* /*feature*/) const { std::cerr << "LSH is not implemented for that type" << std::endl; - throw; - return 1; + return -1; } /** Get statistics about the table