diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-03 09:24:05 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-03 09:24:05 +0200 |
| commit | eaced354e778313f31efb3aedb62d52c0f761829 (patch) | |
| tree | d8c1d7a8ce540b2afe9c9e7203c32ab70b2aacdc | |
| parent | ba86b862d679b358c52aa925044365c8d6057e08 (diff) | |
| download | Project-Tick-eaced354e778313f31efb3aedb62d52c0f761829.tar.gz Project-Tick-eaced354e778313f31efb3aedb62d52c0f761829.zip | |
Fix tag_compound::emplace
| -rw-r--r-- | include/tag_compound.h | 2 |
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)...))); } } |
