diff --git a/include/blt/std/allocator.h b/include/blt/std/allocator.h index dd9071c..8f164f7 100644 --- a/include/blt/std/allocator.h +++ b/include/blt/std/allocator.h @@ -17,19 +17,21 @@ */ #ifndef BLT_ALLOCATOR_H - -#include -#include -#include -#include -#include -#include -#include -#include "logging.h" -#include - + + #include + #include + #include + #include + #include + #include + #include + #include "logging.h" + #include + #ifdef __unix__ + #include + #endif namespace blt @@ -580,7 +582,7 @@ namespace blt T* allocate_back() { size_t remaining_bytes = BLOCK_SIZE - static_cast(head->metadata.offset - head->buffer); - + // auto& back = blocks.back(); // size_t remaining_bytes = size_ - static_cast(back.offset - back.buffer); // auto pointer = static_cast(back.offset);