Introduced CPlusPlus::Managed.

Managed is an helper base class that simplify the usage of memory pools.
This commit is contained in:
Roberto Raggi
2008-12-22 13:09:26 +01:00
parent 753ddb7ce0
commit ae4725e954
4 changed files with 32 additions and 15 deletions

View File

@@ -381,15 +381,6 @@ UsingDirectiveAST *AST::asUsingDirective()
WhileStatementAST *AST::asWhileStatement()
{ return dynamic_cast<WhileStatementAST *>(this); }
void *AST::operator new(size_t size, MemoryPool *pool)
{ return pool->allocate(size); }
void AST::operator delete(void *)
{ }
void AST::operator delete(void *, MemoryPool *)
{ }
void AST::accept(ASTVisitor *visitor)
{
if (visitor->preVisit(this))