diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-09 18:00:42 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-09 18:00:42 +0200 |
| commit | ea71042f79738bcdc08fe3bfa0a2f9cd1c0c03ac (patch) | |
| tree | d6d9a00d078fc3a5f94a2caca86b6c34d83943f6 /include | |
| parent | 4efbf602230c39b311655a726903478977f53b79 (diff) | |
| download | Project-Tick-ea71042f79738bcdc08fe3bfa0a2f9cd1c0c03ac.tar.gz Project-Tick-ea71042f79738bcdc08fe3bfa0a2f9cd1c0c03ac.zip | |
Change signature of put to take value
Diffstat (limited to 'include')
| -rw-r--r-- | include/tag_compound.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tag_compound.h b/include/tag_compound.h index 2b02ec5ba3..80be2f609e 100644 --- a/include/tag_compound.h +++ b/include/tag_compound.h @@ -70,7 +70,7 @@ public: * @return a pair of the iterator to the value and a bool indicating * whether the key did not exist */ - std::pair<iterator, bool> put(const std::string& key, std::unique_ptr<tag>&& t); + std::pair<iterator, bool> put(const std::string& key, value&& val); /** * @brief Constructs and assigns or inserts a tag into the compound @@ -116,7 +116,7 @@ private: template<class T, class... Args> std::pair<tag_compound::iterator, bool> tag_compound::emplace(const std::string& key, Args&&... args) { - return put(key, std::unique_ptr<tag>(new T(std::forward<Args>(args)...))); + return put(key, value(T(std::forward<Args>(args)...))); } } |
