Merge pull request #1366 from asmorkalov:ocv_autobuffer_fix

This commit is contained in:
Roman Donchenko 2013-08-29 16:35:38 +04:00 committed by OpenCV Buildbot
commit fc37df05ec

View File

@ -116,8 +116,8 @@ protected:
_Tp* ptr; _Tp* ptr;
//! size of the real buffer //! size of the real buffer
size_t sz; size_t sz;
//! pre-allocated buffer //! pre-allocated buffer. At least 1 element to confirm C++ standard reqirements
_Tp buf[fixed_size]; _Tp buf[(fixed_size > 0) ? fixed_size : 1];
}; };
//! Sets/resets the break-on-error mode. //! Sets/resets the break-on-error mode.