build: +OPENCV_ENABLE_MEMORY_SANITIZER flag

This commit is contained in:
Alexander Alekhin
2019-04-18 18:50:52 +00:00
parent 8eb685de9d
commit c1981f28ad
3 changed files with 8 additions and 0 deletions
@@ -116,7 +116,11 @@ CV_EXPORTS void setUseCollection(bool flag); // set implementation collection st
}
\endcode
*/
#ifdef OPENCV_ENABLE_MEMORY_SANITIZER
template<typename _Tp, size_t fixed_size = 0> class AutoBuffer
#else
template<typename _Tp, size_t fixed_size = 1024/sizeof(_Tp)+8> class AutoBuffer
#endif
{
public:
typedef _Tp value_type;