Move the json output operator into json namespace
This commit is contained in:
parent
c8f464aa7b
commit
3433e10ec1
@ -560,5 +560,5 @@ json::null::write (std::ostream &os) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ostream&
|
ostream&
|
||||||
operator <<(ostream &os, const json::node &n)
|
json::operator <<(ostream &os, const json::node &n)
|
||||||
{ return n.write (os); }
|
{ return n.write (os); }
|
||||||
|
7
json.hpp
7
json.hpp
@ -276,11 +276,10 @@ namespace json {
|
|||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T&& from_json (const json::node&);
|
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
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user