64,654
社区成员
发帖
与我相关
我的任务
分享
template <class T>
GameLog& operator<<(const T& value) {
message << value;
return *this;
}
GameLog& operator<<(std::ostream& (*func)(std::ostream&)) {
func(message);
return *this;
}
//其中message是类成员
ostringstream message;