summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorljfa-ag <ljfa-ag@web.de>2015-07-03 09:24:05 +0200
committerljfa-ag <ljfa-ag@web.de>2015-07-03 09:24:05 +0200
commiteaced354e778313f31efb3aedb62d52c0f761829 (patch)
treed8c1d7a8ce540b2afe9c9e7203c32ab70b2aacdc /include
parentba86b862d679b358c52aa925044365c8d6057e08 (diff)
downloadProject-Tick-eaced354e778313f31efb3aedb62d52c0f761829.tar.gz
Project-Tick-eaced354e778313f31efb3aedb62d52c0f761829.zip
Fix tag_compound::emplace
Diffstat (limited to 'include')
-rw-r--r--include/tag_compound.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tag_compound.h b/include/tag_compound.h
index ddd96e0a58..526e57d559 100644
--- a/include/tag_compound.h
+++ b/include/tag_compound.h
@@ -117,7 +117,7 @@ private:
template<class T, class... Args>
bool tag_compound::emplace(const std::string& key, Args&&... args)
{
- return put(key, new T(std::forward<Args>(args)...));
+ return put(key, std::unique_ptr<tag>(new T(std::forward<Args>(args)...)));
}
}