summaryrefslogtreecommitdiff
path: root/src/mask.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-22 18:51:49 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-22 18:51:49 -0400
commit0859b626a1eacb0e3bb598c8b33c6f9528f842c3 (patch)
tree4f0728e56c8fcca66f896a831d7d841ff2bf968d /src/mask.h
parent233289681049e2b740919eed6b12ed7db1ccf2df (diff)
downloadfork-ledger-0859b626a1eacb0e3bb598c8b33c6f9528f842c3.tar.gz
fork-ledger-0859b626a1eacb0e3bb598c8b33c6f9528f842c3.tar.bz2
fork-ledger-0859b626a1eacb0e3bb598c8b33c6f9528f842c3.zip
Added output insertion operator for mask_t objects.
Diffstat (limited to 'src/mask.h')
-rw-r--r--src/mask.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mask.h b/src/mask.h
index f2c0e004..2779c428 100644
--- a/src/mask.h
+++ b/src/mask.h
@@ -63,6 +63,11 @@ public:
void write(std::ostream& out) const;
};
+inline std::ostream& operator<<(std::ostream& out, const mask_t& mask) {
+ out << mask.expr.str();
+ return out;
+}
+
} // namespace ledger
#endif // _MASK_H