In file included from main.cpp:28:0:
fixed_allocator.h: In instantiation of 'FixedAllocator<Tp>::FixedAllocator(uint64_t) [with Tp = int; uint64_t = long unsigned int]':
main.cpp:44:32: required from here
fixed_allocator.h:17:19: error: 'FixedAllocator<int>::page_allocator_' will be initialized after [-Werror=reorder]
PageAllocator page_allocator_;
^~~~~~~~~~~~~~~
fixed_allocator.h:16:25: error: 'const uint64_t FixedAllocator<int>::pages' [-Werror=reorder]
const std::uint64_t pages;
^~~~~
fixed_allocator.h:21:14: error: when initialized here [-Werror=reorder]
explicit FixedAllocator(uint64_t page_size) :
^~~~~~~~~~~~~~
fixed_allocator.h: In instantiation of 'FixedAllocator<Tp>::FixedAllocator(uint64_t) [with Tp = std::__cxx11::basic_string<char>; uint64_t = long unsigned int]':
main.cpp:55:41: required from here
fixed_allocator.h:17:19: error: 'FixedAllocator<std::__cxx11::basic_string<char> >::page_allocator_' will be initialized after [-Werror=reorder]
PageAllocator page_allocator_;
^~~~~~~~~~~~~~~
fixed_allocator.h:16:25: error: 'const uint64_t FixedAllocator<std::__cxx11::basic_string<char> >::pages' [-Werror=reorder]
const std::uint64_t pages;
^~~~~
fixed_allocator.h:21:14: error: when initialized here [-Werror=reorder]
explicit FixedAllocator(uint64_t page_size) :
^~~~~~~~~~~~~~
fixed_allocator.h: In instantiation of 'FixedAllocator<Tp>::FixedAllocator(uint64_t) [with Tp = char; uint64_t = long unsigned int]':
main.cpp:116:35: required from here
fixed_allocator.h:17:19: error: 'FixedAllocator<char>::page_allocator_' will be initialized after [-Werror=reorder]
PageAllocator page_allocator_;
^~~~~~~~~~~~~~~
fixed_allocator.h:16:25: error: 'const uint64_t FixedAllocator<char>::pages' [-Werror=reorder]
const std::uint64_t pages;
^~~~~
fixed_allocator.h:21:14: error: when initialized here [-Werror=reorder]
explicit FixedAllocator(uint64_t page_size) :
^~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
|