From ea71042f79738bcdc08fe3bfa0a2f9cd1c0c03ac Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Thu, 9 Jul 2015 18:00:42 +0200 Subject: Change signature of put to take value --- include/tag_compound.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 put(const std::string& key, std::unique_ptr&& t); + std::pair put(const std::string& key, value&& val); /** * @brief Constructs and assigns or inserts a tag into the compound @@ -116,7 +116,7 @@ private: template std::pair tag_compound::emplace(const std::string& key, Args&&... args) { - return put(key, std::unique_ptr(new T(std::forward(args)...))); + return put(key, value(T(std::forward(args)...))); } } -- cgit 0.0.5-2-1-g0f52