In file included from main.cpp:28:0:
fixed_allocator.h: In destructor 'FixedAllocator<Tp>::~FixedAllocator()':
fixed_allocator.h:38:16: error: there are no arguments to 'clear' that depend on a template parameter, so a declaration of 'clear' must be available [-fpermissive]
delete clear();
^~~~~
fixed_allocator.h:38:16: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
fixed_allocator.h: In instantiation of 'FixedAllocator<Tp>::~FixedAllocator() [with Tp = int]':
main.cpp:44:32: required from here
fixed_allocator.h:38:21: error: 'clear' was not declared in this scope
delete clear();
~~~~~^~
fixed_allocator.h:38:21: note: suggested alternative: 'char'
delete clear();
~~~~~^~
char
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:38:21: error: 'clear' was not declared in this scope
fixed_allocator.h:38:21: note: suggested alternative: 'char'
delete clear();
~~~~~^~
char
fixed_allocator.h: In instantiation of 'FixedAllocator<Tp>::~FixedAllocator() [with Tp = char]':
main.cpp:116:35: required from here
fixed_allocator.h:38:21: error: 'clear' was not declared in this scope
fixed_allocator.h:38:21: note: suggested alternative: 'char'
delete clear();
~~~~~^~
char
|