diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-11-28 12:19:13 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-11-28 12:19:13 -0500 |
| commit | d6792165cb7df9f8f7d8e734a5af63bc25d83fbc (patch) | |
| tree | 256a10e6452996629c0681a966158e76bf22aa71 | |
| parent | 99947625e8c81bedea910ae52da816dd942d52d9 (diff) | |
move MemBucket declaration to a typedef header
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/memory-type-defs.hpp | 6 | ||||
| -rw-r--r-- | src/memory.hpp | 3 |
3 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c938efe..eb275ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,7 @@ set(PKE_SOURCE_FILES src/helpers.cpp src/math-helpers.hpp src/math-helpers.cpp + src/memory-type-defs.hpp src/memory.hpp src/memory.cpp src/memory-allocator.hpp diff --git a/src/memory-type-defs.hpp b/src/memory-type-defs.hpp new file mode 100644 index 0000000..fea8b36 --- /dev/null +++ b/src/memory-type-defs.hpp @@ -0,0 +1,6 @@ +#ifndef PKE_MEMORY_TYPE_DEFS_HPP +#define PKE_MEMORY_TYPE_DEFS_HPP + +struct MemBucket; + +#endif /* PKE_MEMORY_TYPE_DEFS_HPP */ diff --git a/src/memory.hpp b/src/memory.hpp index 0f70a61..0512118 100644 --- a/src/memory.hpp +++ b/src/memory.hpp @@ -1,6 +1,7 @@ #ifndef PKE_MEMORY_HPP #define PKE_MEMORY_HPP +#include "memory-type-defs.hpp" #include "macros.hpp" #include <cstring> @@ -16,8 +17,6 @@ extern const std::size_t MINIMUM_ALIGNMENT; extern const std::size_t MAXIMUM_ALIGNMENT; -struct MemBucket; - template<typename T, typename CT> struct BucketContainer { uint64_t incrementer = 2; |
