Refactored stream overloads

This commit is contained in:
Jesse Beder
2012-05-25 18:24:07 -05:00
parent 2ffdc5b4d1
commit 772969270d
2 changed files with 14 additions and 21 deletions

View File

@@ -53,22 +53,4 @@ namespace YAML
m_comment = false;
}
}
ostream_wrapper& operator << (ostream_wrapper& out, const char *str)
{
out.write(str, std::strlen(str));
return out;
}
ostream_wrapper& operator << (ostream_wrapper& out, const std::string& str)
{
out.write(str);
return out;
}
ostream_wrapper& operator << (ostream_wrapper& out, char ch)
{
out.write(&ch, 1);
return out;
}
}