Suppose I have a log function like this:
void myLog(const char* msg);
The above function can't be changed.
How can I call it easily in C++? Usually I write the code like this:
stringstream ss;
ss << "name : " << name << " age " << age;
mylog(ss.str().c_str());
Can I can reduce the 3 lines to 1 line in c++ somehow?