aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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