diff options
author | JellyBrick <shlee1503@naver.com> | 2018-05-26 17:59:42 +0900 |
---|---|---|
committer | JellyBrick <shlee1503@naver.com> | 2018-05-26 17:59:42 +0900 |
commit | ad40032ec5608af2fd94b28cbfe498a7313c3af0 (patch) | |
tree | e932ad8f364ddfa108e633a3624371a569936fdb /include | |
parent | b79bd701400fb8bf8a845f8a24d78e82f182bb2f (diff) |
Fix build error
Diffstat (limited to 'include')
-rw-r--r-- | include/tgbot/TgTypeParser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tgbot/TgTypeParser.h b/include/tgbot/TgTypeParser.h index 9f56b8e..2faaf45 100644 --- a/include/tgbot/TgTypeParser.h +++ b/include/tgbot/TgTypeParser.h @@ -245,7 +245,7 @@ public: std::shared_ptr<T> tryParseJson(JsonToTgTypeFunc<T> parseFunc, const boost::property_tree::ptree& data, const std::string& keyName) const { auto treeItem = data.find(keyName); if (treeItem == data.not_found()) { - return std::make_shared<T>(); + return std::shared_ptr<T>(); } return (this->*parseFunc)(treeItem->second); } |