以下のコードが通らない。
int main()
{
int x = 0 ;
[x] {
x ;
[x]{
x ;
} ;
} ;
}
でも、以下のコードは通る。
int main()
{
int x ;
[x] {
x ;
[=]{
x ;
} ;
} ;
}
訳がわからない。VC10はこんな不完全な形でlambdaを実装したまま、製品を出荷すべきではなかった。
No comments:
Post a Comment
You can use some HTML elements, such as <b>, <i>, <a>, also, some characters need to be entity referenced such as <, > and & Your comment may need to be confirmed by blog author. Your comment will be published under GFDL 1.3 or later license with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.