diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-06-29 23:09:20 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-06-29 23:09:20 +0200 |
| commit | b81ebe6cba109a215254bfae074f8fc6f334eca8 (patch) | |
| tree | e43430935a9dc6d11c479ec163303d707bdb6400 /include | |
| parent | 8525040283ddb6190903b2a1d00481123daf4004 (diff) | |
| download | Project-Tick-b81ebe6cba109a215254bfae074f8fc6f334eca8.tar.gz Project-Tick-b81ebe6cba109a215254bfae074f8fc6f334eca8.zip | |
Fix tag_compound and value
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; |
