Commit 5af2cc62 authored by Alexander Smorkalov's avatar Alexander Smorkalov

AutoBuffer with initial zero size fixed.

parent 580677f4
......@@ -116,8 +116,8 @@ protected:
_Tp* ptr;
//! size of the real buffer
size_t sz;
//! pre-allocated buffer
_Tp buf[fixed_size];
//! pre-allocated buffer. At least 1 element to confirm C++ standard reqirements
_Tp buf[(fixed_size > 0) ? fixed_size : 1];
};
//! Sets/resets the break-on-error mode.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment