AutoBuffer with initial zero size fixed.
This commit is contained in:
parent
580677f43d
commit
5af2cc6223
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user