In file included from main.cpp:28:0:
fixed_allocator.h: In instantiation of 'FixedAllocator<Tp>::~FixedAllocator() [with Tp = int]':
main.cpp:44:32: required from here
fixed_allocator.h:39:9: error: type 'class std::stack<int*, std::deque<int*, std::allocator<int*> > >' argument given to 'delete', expected pointer
delete pools;
^~~~~~
fixed_allocator.h: In instantiation of 'FixedAllocator<Tp>::~FixedAllocator() [with Tp = std::__cxx11::basic_string<char>]':
main.cpp:55:41: required from here
fixed_allocator.h:39:9: error: type 'class std::stack<std::__cxx11::basic_string<char>*, std::deque<std::__cxx11::basic_string<char>*, std::allocator<std::__cxx11::basic_string<char>*> > >' argument given to 'delete', expected pointer
fixed_allocator.h: In instantiation of 'FixedAllocator<Tp>::~FixedAllocator() [with Tp = char]':
main.cpp:116:35: required from here
fixed_allocator.h:39:9: error: type 'class std::stack<char*, std::deque<char*, std::allocator<char*> > >' argument given to 'delete', expected pointer
|