int main() {
[] {
struct A {
void func() {
std::cout << "hello" << std::endl;
}
};
return A();
}().func();
}
The most amazing feature of new C++0x, I believe.
programmingprogrammingprogrammingprogramming
int main() {
[] {
struct A {
void func() {
std::cout << "hello" << std::endl;
}
};
return A();
}().func();
}
No comments:
Post a Comment