Забавный вывод

#include 
#include 

class Logger
{
public:
    static Logger* Instance()
    {
        return NULL;
    }

    void Log(std::wstring const& info)
    {
        std::wcout << info << std::endl;
    }
};

int main()
{
    Logger::Instance()->Log(L"Hello world");
}

Результататом работы программы будет: "Hello world" =)
На stackoverflow есть обсуждение данной особенности.

Comments