this was deliberate as wostringstream returns a std::wstring from the call to str() which then can't be passed to htmlLog