diff --git a/modules/flann/include/opencv2/flann/flann.hpp b/modules/flann/include/opencv2/flann/flann.hpp index a01e1a84fa..93dd89c674 100644 --- a/modules/flann/include/opencv2/flann/flann.hpp +++ b/modules/flann/include/opencv2/flann/flann.hpp @@ -225,7 +225,11 @@ int GenericIndex::radiusSearch(const Mat& query, Mat& indices, Mat& di * @deprecated Use GenericIndex class instead */ template -class Index_ { +class +#ifndef _MSC_VER + FLANN_DEPRECATED +#endif + Index_ { public: typedef typename L2::ElementType ElementType; typedef typename L2::ResultType DistanceType; @@ -277,8 +281,10 @@ private: ::cvflann::Index< L1 >* nnIndex_L1; }; +#ifdef _MSC_VER template class FLANN_DEPRECATED Index_; +#endif template Index_::Index_(const Mat& dataset, const ::cvflann::IndexParams& params)