Summary
This episode revisits Jason's previous implementation of std::bind_front from C++20 using lambdas, but addresses a critical limitation: the inability to properly handle member functions. Jason demonstrates how std::invoke is essential for properly binding member functions, and attempts to show the complexity of implementing a custom invoke function with all the necessary overloads for different member function qualifiers (const, non-const, noexcept) and reference qualifiers. The episode highlights the value of standard library facilities that handle these complexities for you.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[refwrap.invoke]53% match