Merge pull request #1366 from asmorkalov:ocv_autobuffer_fix
This commit is contained in:
commit
fc37df05ec
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user