From 6374857bfd25a033ff31316157c985645ae4519c Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Sun, 28 Jun 2015 19:23:40 +0200 Subject: Iterators typedefs for tag_compound --- include/tag_compound.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/tag_compound.h b/include/tag_compound.h index e0426dbf74..51ca877a06 100644 --- a/include/tag_compound.h +++ b/include/tag_compound.h @@ -23,7 +23,6 @@ #include "tag.h" #include "value.h" #include -#include #include namespace nbt @@ -34,8 +33,8 @@ class tag_compound : public tag { public: //Iterator types - typedef void* iterator; //FIXME - typedef const void* const_iterator; + typedef std::map::iterator iterator; + typedef std::map::const_iterator const_iterator; ///The type of the tag static constexpr tag_type type = tag_type::Compound; @@ -91,7 +90,7 @@ public: tag_type get_type() const noexcept override; private: - + std::map tags; bool equals(const tag& rhs) const override; }; -- cgit 0.0.5-2-1-g0f52