diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-22 15:20:32 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-22 15:20:32 +0200 |
| commit | 473f094be33ccd92c003ec25c9a9f940629ecdc9 (patch) | |
| tree | 4849f963d8d8f64fb52971b4f5ac34b11e655c9a /include | |
| parent | 35041b1d15c0068779e090f6b094a98d92f232d2 (diff) | |
| download | Project-Tick-473f094be33ccd92c003ec25c9a9f940629ecdc9.tar.gz Project-Tick-473f094be33ccd92c003ec25c9a9f940629ecdc9.zip | |
Add operator<< for tag_type
Diffstat (limited to 'include')
| -rw-r--r-- | include/tag.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <cstdint> +#include <iosfwd> #include <memory> 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 |
