From ad40032ec5608af2fd94b28cbfe498a7313c3af0 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sat, 26 May 2018 17:59:42 +0900 Subject: Fix build error --- include/tgbot/TgTypeParser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 tryParseJson(JsonToTgTypeFunc 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(); + return std::shared_ptr(); } return (this->*parseFunc)(treeItem->second); } -- cgit v1.2.3