Interconverting std::function with copyable_function
Summary
This article analyzes the interplay between std::function and the new C++26 copyable_function, highlighting implementation details, potential performance pitfalls, and interop concerns when mixing old and new type-erased wrappers. It cites the standardization papers, benchmarks, and real-world library behavior across libstdc++, libc++, and MSVC.