Storing a lambda that returns a reference into a std::function Storing Lambdas Returning References in std function A Guide to Avoiding Common Pitfalls Problem You want to store a lambda function that returns a reference in 2 min read 06-10-2024 13