Implement ostream operator<< for RsSerializable

So it is not necessary to define it for each class we want to print in
  debug
This commit is contained in:
Gioacchino Mazzurco 2018-11-10 16:24:47 +01:00
parent e449ffba04
commit f84824271f
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
4 changed files with 39 additions and 2 deletions

View file

@ -39,7 +39,7 @@ typedef rapidjson::Document RsJson;
* @param[in] jDoc JSON document to print
* @return same output stream passed as out parameter
*/
std::ostream &operator<<(std::ostream &out, const RsJson &jDoc);
std::ostream& operator<<(std::ostream &out, const RsJson &jDoc);
/**
* Stream manipulator to print RsJson in compact format