|
Boost : |
From: Gabriel Dos Reis (gdr_at_[hidden])
Date: 2004-03-08 09:37:08
"Thorsten Ottosen" <nesotto_at_[hidden]> writes:
| "Gabriel Dos Reis" <gdr_at_[hidden]> wrote in message
| news:m3ptbn7anv.fsf_at_uniton.integrable-solutions.net...
| > "Thorsten Ottosen" <nesotto_at_[hidden]> writes:
| [sinp]
| > | 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.
|
| ok, I just understood that people would want to store these lambda
| expression. So why not
| as members too?
Yes, they may do so as showed in the previous message.
But, there is no such things as "auto x" for data member
declaration. You may, however, have the "auto" paremeter as a class
template paremeter which you can in turn use to declare the type of
"x".
-- Gaby
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk