Thursday, June 16, 2011

Anonymous classes in C++


int main() {
[] {
struct A {
void func() {
std::cout << "hello" << std::endl;
}
};
return A();
}().func();
}


The most amazing feature of new C++0x, I believe.

Friday, June 10, 2011

New Android tablet

Lol I can connect mouse and keyboard to my new android tablet. Looks like I need HDMI-enabled display :-)