AutoBuffer with initial zero size fixed.

This commit is contained in:
Alexander Smorkalov 2013-08-25 16:33:22 +04:00
parent 580677f43d
commit 5af2cc6223

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.