class object { public: void check() { std::cout<<\"I am doing ok...\"<
I think it depends on the environment (platform/compiler)... This at least gives unexpected behaviour. I think you are lucky that it doesn't crash in your case ;-)