From b81ebe6cba109a215254bfae074f8fc6f334eca8 Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Mon, 29 Jun 2015 23:09:20 +0200 Subject: Fix tag_compound and value --- include/tag_compound.h | 3 +-- include/value.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/tag_compound.h b/include/tag_compound.h index 51ca877a06..3750e8a557 100644 --- a/include/tag_compound.h +++ b/include/tag_compound.h @@ -62,7 +62,6 @@ public: * Else, a new uninitalized entry is created under this key. */ value& operator[](const std::string& key); - const value& operator[](const std::string& key) const; /** * @brief Erases a tag from the compound @@ -71,7 +70,7 @@ public: bool erase(const std::string& key); ///Returns true if the given key exists in the compound - bool has_key(const std::string& key); + bool has_key(const std::string& key) const; ///Returns the number of tags in the compound size_t size() const; diff --git a/include/value.h b/include/value.h index 2a9ecc0d1a..d55acf3c80 100644 --- a/include/value.h +++ b/include/value.h @@ -42,6 +42,8 @@ class tag_list; class value { public: + explicit value() {} + //Movable but not (implicitly) copyable value(const value&) = delete; value(value&&) = default; -- cgit 0.0.5-2-1-g0f52