diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/tag_compound.h | 3 | ||||
| -rw-r--r-- | include/value.h | 2 |
2 files changed, 3 insertions, 2 deletions
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; |
