Improved and configurable drop-in replacement to std::function that supports move only types, multiple overloads and more
Full Changelog: https://github.com/Naios/function2/compare/4.2.2...4.2.3
Includes recent improvements
Includes minor maintainance and stability patches from the last year
integral_type
like type rather than
specifying the size directly, this makes it possible to also specify the alignment and
it works better with capacities that shall hold a forward declared object which is defined later.struct my_capacity {
static constexpr std::size_t capacity = sizeof(my_type);
static constexpr std::size_t alignment = alignof(my_type);
};
function_view
This release fixes a major issue which lead to a double destruction when using the standard std::allocator