summaryrefslogtreecommitdiff
path: root/src/base/types.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/types.hh')
-rw-r--r--src/base/types.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base/types.hh b/src/base/types.hh
index b4cb69a0c..ad9ac766e 100644
--- a/src/base/types.hh
+++ b/src/base/types.hh
@@ -40,6 +40,7 @@
#include <inttypes.h>
#include <cassert>
+#include <ostream>
/** uint64_t constant */
#define ULL(N) ((uint64_t)N##ULL)
@@ -125,6 +126,8 @@ class Cycles
const Cycles operator >>(const int32_t shift)
{ return Cycles(c >> shift); }
+ friend std::ostream& operator<<(std::ostream &out, const Cycles & cycles);
+
#endif // SWIG not touching operators
};