aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2020-12-26 23:49:04 +0100
committerJay Berkenbilt <ejb@ql.org>2020-12-28 18:58:19 +0100
commit3f9191a34456e79ec6d98bfe46546d9df9abdcba (patch)
tree2d7ebbf04cfb4381913668e99fa09257d562792f /include
parent858c7b89bc67698a112b3b07885310d8e0132eb0 (diff)
downloadqpdf-3f9191a34456e79ec6d98bfe46546d9df9abdcba.tar.zst
Add ostream << for QPDFObjGen
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjGen.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/qpdf/QPDFObjGen.hh b/include/qpdf/QPDFObjGen.hh
index 1cfe1547..996f5d85 100644
--- a/include/qpdf/QPDFObjGen.hh
+++ b/include/qpdf/QPDFObjGen.hh
@@ -23,6 +23,7 @@
#define QPDFOBJGEN_HH
#include <qpdf/DLL.h>
+#include <iostream>
// This class represents an object ID and generation pair. It is
// suitable to use as a key in a map or set.
@@ -43,6 +44,9 @@ class QPDFObjGen
QPDF_DLL
int getGen() const;
+ QPDF_DLL
+ friend std::ostream& operator<<(std::ostream&, const QPDFObjGen&);
+
private:
// This class does not use the Members pattern to avoid a memory
// allocation for every one of these. A lot of these get created