diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/tag_compound.h | 6 | ||||
| -rw-r--r-- | include/value.h | 1 |
2 files changed, 2 insertions, 5 deletions
diff --git a/include/tag_compound.h b/include/tag_compound.h index ea0df236c9..acde3a1e2b 100644 --- a/include/tag_compound.h +++ b/include/tag_compound.h @@ -58,10 +58,8 @@ public: /** * @brief Accesses a tag by key * - * Returns a value to the tag with the specified key, or throws an - * exception if it does not exist. - * @throw std::out_of_range if given key does not exist - * @todo Make it create a new entry rather than throwing an exception + * Returns a value to the tag with the specified key. If it does not exist, + * creates a new uninitialized entry under the key. */ value& operator[](const std::string& key); diff --git a/include/value.h b/include/value.h index 4116e2d0c1..b2a7a21b1f 100644 --- a/include/value.h +++ b/include/value.h @@ -113,7 +113,6 @@ public: /** * @brief In case of a tag_compound, accesses a tag by key - * @throw std::bad_cast if the tag type is not tag_compound * @sa tag_compound::operator[] */ value& operator[](const std::string& key); |
