In file included from main.cpp:28:0:
fixed_allocator.h: In instantiation of 'void FixedAllocator<Tp>::Deallocate(Tp*) [with Tp = int]':
main.cpp:47:24: required from here
fixed_allocator.h:32:9: error: base operand of '->' has non-pointer type 'std::stack<int*, std::deque<int*, std::allocator<int*> > >'
this->pools->push(p);
^~~~
fixed_allocator.h: In instantiation of 'void FixedAllocator<Tp>::Deallocate(Tp*) [with Tp = std::__cxx11::basic_string<char>]':
main.cpp:64:38: required from here
fixed_allocator.h:32:9: error: base operand of '->' has non-pointer type 'std::stack<std::__cxx11::basic_string<char>*, std::deque<std::__cxx11::basic_string<char>*, std::allocator<std::__cxx11::basic_string<char>*> > >'
fixed_allocator.h: In instantiation of 'void FixedAllocator<Tp>::Deallocate(Tp*) [with Tp = char]':
main.cpp:123:36: required from here
fixed_allocator.h:32:9: error: base operand of '->' has non-pointer type 'std::stack<char*, std::deque<char*, std::allocator<char*> > >'
|