未验证 提交 92edd9e1 编写于 作者: H hong19860320 提交者: GitHub

[Core] Support char* in the replace_stl::ostream (#3516)

上级 f23b3028
......@@ -53,6 +53,12 @@ ostream& ostream::operator<<(const char* obj) {
return *this;
}
template <>
ostream& ostream::operator<<(char* const& obj) {
data_ = data_ + std::string(obj);
return *this;
}
template <>
ostream& ostream::operator<<(const char& obj) {
data_ = data_ + obj;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册