reactivemarkets / toolbox-cpp

The Reactive C++ Toolbox is an open source library of C++20 components designed for efficient, asynchronous network applications on the Linux platform.
https://reactivemarkets.github.io/toolbox-cpp/
Other
21 stars 20 forks source link

feat(log): replace Storage class with void pointer #126

Closed markaylett closed 3 years ago

markaylett commented 3 years ago

Replace the Storage class template with a simple void pointer manager by a unique_ptr, where the unique_ptr's deleter encapsulates the allocation size.

Using a class template for the deleter instead of a function pointer also ensures that the unique_ptr has no overhead in terms of its size. I.e. it does not need to store a function pointer.

Remove unused aligned allocator function overloads.

DEV-1325