Move the json output operator into json namespace

This commit is contained in:
Danny Robson 2012-04-26 18:20:08 +10:00
parent c8f464aa7b
commit 3433e10ec1
2 changed files with 4 additions and 5 deletions

View File

@ -560,5 +560,5 @@ json::null::write (std::ostream &os) const {
}
ostream&
operator <<(ostream &os, const json::node &n)
json::operator <<(ostream &os, const json::node &n)
{ return n.write (os); }

View File

@ -276,11 +276,10 @@ namespace json {
template <typename T>
T&& from_json (const json::node&);
std::ostream&
operator <<(std::ostream &os, const json::node &n);
}
std::ostream&
operator <<(std::ostream &os, const json::node &n);
#endif