In file included from main.cpp:28:0:
fixed_allocator.h: In member function 'Tp* FixedAllocator<Tp>::Allocate()':
fixed_allocator.h:18:36: error: expected '(' before 'temp'
reinterpret_cast<Tp *> temp = \
^~~~
fixed_allocator.h:18:36: error: 'temp' was not declared in this scope
fixed_allocator.h:18:36: note: suggested alternative: 'mktemp'
reinterpret_cast<Tp *> temp = \
^~~~
mktemp
fixed_allocator.h:19:36: error: expected '(' before ')' token
(reinterpret_cast<Tp *>)this->page_allocator_->Allocate();
^
fixed_allocator.h:19:36: error: expected primary-expression before ')' token
fixed_allocator.h:19:37: error: expected ')' before 'this'
(reinterpret_cast<Tp *>)this->page_allocator_->Allocate();
^~~~
fixed_allocator.h:19:70: error: expected ')' before ';' token
(reinterpret_cast<Tp *>)this->page_allocator_->Allocate();
^
|