From 473f094be33ccd92c003ec25c9a9f940629ecdc9 Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Wed, 22 Jul 2015 15:20:32 +0200 Subject: Add operator<< for tag_type --- include/tag.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/tag.h b/include/tag.h index b972a16da6..63125f1dc5 100644 --- a/include/tag.h +++ b/include/tag.h @@ -21,6 +21,7 @@ #define TAG_H_INCLUDED #include +#include #include namespace nbt @@ -41,7 +42,7 @@ enum class tag_type : int8_t List = 9, Compound = 10, Int_Array = 11, - Null = -1 + Null = -1 ///< Used to denote empty @ref value s }; ///Base class for all NBT tag classes @@ -75,6 +76,8 @@ private: virtual bool equals(const tag& rhs) const = 0; }; +std::ostream& operator<<(std::ostream& os, tag_type tt); + } #endif // TAG_H_INCLUDED -- cgit 0.0.5-2-1-g0f52