All Questions
5
questions
2
votes
3
answers
350
views
Fixed-size memory allocator
I've been trying to implement a simple Boost PMR allocator that has a fixed amount of memory. My first implementation (which can be found here) had undefined behavior and did not handle memory ...
3
votes
0
answers
296
views
A way to automatically reorder struct fields by their sizes in descending order
Using constexpr and preprocessor magic it is possible to cook a struct which have a minimal size between all possible sizes, keeping all the data members properly ...
3
votes
1
answer
2k
views
Program that handles program options
I'm using boost::program_options to parse input from the user. However, while the standard library makes this an easy task to do, it's causing an (in my opinion) ...
8
votes
1
answer
2k
views
Smart pointer memory pool
I'm using a third-party library which utilizes boost::shared_ptr for memory management.
The problem is that I need to allocate many objects and I have detected ...
27
votes
1
answer
20k
views
Efficient smart pointer implementation in C++
The idea behind this is mainly educational but I might even consider using it in reality if turns out to be good. Here's my first try at implementing smart pointers:
...