opencv/opencv-clang.patch
Stephan Kulow 9a768f8315 Accepting request 98468 from KDE:Distro:Factory
- Add upstream r6881 to fix clang compatibility (forwarded request 98467 from namtrac)

OBS-URL: https://build.opensuse.org/request/show/98468
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/opencv?expand=0&rev=28
2012-01-04 06:25:38 +00:00

23 lines
825 B
Diff

--- opencv/modules/flann/include/opencv2/flann/any.h (revision 6809)
+++ opencv/modules/flann/include/opencv2/flann/any.h (revision 6881)
@@ -31,4 +31,10 @@
};
+inline std::ostream& operator <<(std::ostream& out, const empty_any&)
+{
+ out << "[empty_any]";
+ return out;
+}
+
struct base_any_policy
{
--- opencv/modules/flann/include/opencv2/flann/lsh_index.h (revision 6724)
+++ opencv/modules/flann/include/opencv2/flann/lsh_index.h (revision 6881)
@@ -57,5 +57,5 @@
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;