
"Thorsten Ottosen" <nesotto@cs.auc.dk> writes: | "Gabriel Dos Reis" <gdr@integrable-solutions.net> wrote in message | news:m365dgdlm3.fsf@uniton.integrable-solutions.net... | | > Yes, and that should be anticipated. People have already been storing | > function objects (in the traditional C++ sense), there is no reason to | > believe they would not attempt the same thing with lambdas. | | Consider | | struct X | { | auto x; | }; | | how can we know the size of X? That is not supposed to be valid C++, regardless of lambdas, so I don't quite understand your question. However, you cn have this: template<class T> struct foo_helper { T data; }; template<class T> foo_helper<T> foo(const T& x) { .... } auto x = foo(...); -- Gaby