assertion to guard buffer size limit

This commit is contained in:
Fischlurch 2009-07-19 00:41:37 +02:00
parent 584878e0f8
commit 3ecd8047df

View file

@ -628,12 +628,13 @@ namespace lib {
destroy(); \
try \
{ \
return *new(&buf_) _CTOR_CALL_; \
} \
catch (...) \
{ \
placeDefault(); \
throw; \
REQUIRE (siz >= sizeof(TY)); \
return *new(&buf_) _CTOR_CALL_; \
} \
catch (...) \
{ \
placeDefault(); \
throw; \
}