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:28:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (ind != -1) {
~~~~^~~~~
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:28:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
fixed_allocator.h: In instantiation of 'void FixedAllocator<Tp>::Deallocate(Tp*) [with Tp = char]':
main.cpp:123:36: required from here
fixed_allocator.h:28:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
cc1plus: all warnings being treated as errors
|