Added more error checking for no-eh builds.

[SVN r12870]
This commit is contained in:
John Maddock
2002-02-21 11:30:41 +00:00
parent b55cce9a42
commit 11accf4a8b
6 changed files with 14 additions and 1 deletions

View File

@ -85,6 +85,7 @@ public:
node* BOOST_REGEX_CALL get_node()
{
node* new_stack = reinterpret_cast<node*>(alloc_inst.allocate(sizeof(node) + sizeof(T) * block_size));
BOOST_REGEX_NOEH_ASSERT(new_stack)
new_stack->last = reinterpret_cast<T*>(new_stack+1);
new_stack->start = new_stack->end = new_stack->last + block_size;
new_stack->next = 0;