This is one of the best troll posts that is getting taken seriously ever... wow.
@unlinked_dll has it correct: the C++ way to allocate an array of chars is `std::vector<char>` (or `std::array<char, size>`).
std::function would still work in this case because pointers to C functions have a normal operator().