Tuesday, March 1, 2011

Compile-time humor


struct Govno {};
struct Konfetka {};

int main() {
Govno g;
Konfetka k(g);
}
-----------------------
main.cpp(6): error C2440: 'initializing' : cannot convert from 'Govno' to 'Konfetka'

No comments:

Post a Comment