memory
memory copied to clipboard
STL compatible C++ memory allocator library using a new RawAllocator concept that is similar to an Allocator but easier to use and write.
Hi, When compiled with the default settings, neither `FOONATHAN_MEMORY_DEBUG_ASSERT` or `FOONATHAN_MEMORY_ASSERT` is defined. so this line [#define FOONATHAN_MEMORY_ASSERT_MSG(Expr, Msg)](https://github.com/foonathan/memory/blob/016c9fbd61b57ed2058551dcf225c15a0e716cce/include/foonathan/memory/detail/assert.hpp#L47) will be evaluated to empty code and then https://github.com/foonathan/memory/blob/016c9fbd61b57ed2058551dcf225c15a0e716cce/src/virtual_memory.cpp#L50-L51 will have...
Hi, I'd like to check if it's a good time to release or tag a new version? The latest tag of [v0.7-3](https://github.com/foonathan/memory/releases/tag/v0.7-3) was released a year ago and it does...
This fixes a warning produced when using `-Wundef`.
I try to install with the command "cmake .. -DCMAKE_BUILD_TYPE="buildtype" -DFOONATHAN_MEMORY_BUILD_EXAMPLES=OFF -DFOONATHAN_MEMORY_BUILD_TESTS=OFF -DFOONATHAN_MEMORY_BUILD_TOOLS=ON -DCMAKE_INSTALL_PREFIX=../install -DBUILD_SHARED_LIBS=ON" , but there occur an error, below is the record: E:\Dev\study\open_source\DDS\foonathan_memory_msvc\build>cmake .. -DCMAKE_BUILD_TYPE="buildtype" -DFOONATHAN_MEMORY_BUILD_EXAMPLES=OFF -DFOONATHAN_MEMORY_BUILD_TESTS=OFF...
Compilation error for version 0.7.3 on ubuntu 18 armv7 gnu 7.5.0 `/foonathan/memory/detail/debug_helpers.hpp:175:69: error: conversion to ‘unsigned int’ from ‘std::__atomic_base::__int_type {aka int}’ may change the sign of the result [-Werror=sign-conversion]` ```...
The allocation functions in the specialization of allocator_traits for memory_pool_collection check for overaligned allocations. The comment says... bad_allocation_size exception if \c size / \c alignment exceeds \ref max_no de_size() /...
For the segregator, it checks the size of the allocation. However, some allocators (I'm looking at you, memory_pool_collection_allocator) throw if the requested alignment is too big. However, the segregator could...
The bug is a typo of max_alignment. This caused the SFINAE used in the allocator_traits to use the default max alignment because max_alignment wasn't defined. This meant that you could...
This feature is almost never needed. However, when it is needed, it is badly needed. Consider the case where a program forks. The allowable operations in the child (before calling...
virtual_memory_page_size has been deprecated, but it was being used internally extensively. Prior to this change, static use was impossible if PAGESIZE or PAGE_SIZE weren't set. The deprecation has been taken...