Skip to content

Commit

Permalink
Merge pull request #1608 from Expensify/cole_sdata_operator
Browse files Browse the repository at this point in the history
Add SData operator for <<
  • Loading branch information
tylerkaraszewski authored Nov 8, 2023
2 parents 9467741 + e55bca6 commit a1ad6fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libstuff/SData.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,10 @@ struct SData {
static SData create(const string& rhs);
static const string placeholder;
};

// Support output stream operations.
inline ostream& operator<<(ostream& output, const SData& val)
{
output << val.serialize();
return output;
}

0 comments on commit a1ad6fe

Please sign in to comment.