Original Post
I'm browsing some code here and i discovered the following function: void Log(const std::stringstream &Stream) So i thought: Hey, that's great! That could be a nice way to get rid of my log function, which looks like this: void Log(const std::string &Text, ...); So i assumed i could call the function like this: int Age = 36; Log("Hi, my age is " << Age << "\n"); Appearantly this didn't work. So i don't understand why he made it if you can only use it like this: std::stringstream Stream; int Age = 36; Stream << "Hello, my age is " << Age << "\n"; Log(Stream); Or am I missing something here? I think it could be really useful.