summaryrefslogtreecommitdiff
path: root/include/tgbot/net/TgWebhookLocalServer.h
diff options
context:
space:
mode:
authorOleg Morozenkov <omorozenkov@gmail.com>2015-08-12 13:43:02 +0300
committerOleg Morozenkov <omorozenkov@gmail.com>2015-08-12 13:43:02 +0300
commite3490d65bb824a9b4ee0fdc0872753fa295b1087 (patch)
tree0f61ecf6dd0e592c2390a8a93e3794dade2360f8 /include/tgbot/net/TgWebhookLocalServer.h
parent7b3fa406eb228a00ef9f053bd2177d53b61b1d3d (diff)
Fix some compiler errors with global header file
Diffstat (limited to 'include/tgbot/net/TgWebhookLocalServer.h')
-rw-r--r--include/tgbot/net/TgWebhookLocalServer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/tgbot/net/TgWebhookLocalServer.h b/include/tgbot/net/TgWebhookLocalServer.h
index 8faf61d..6632485 100644
--- a/include/tgbot/net/TgWebhookLocalServer.h
+++ b/include/tgbot/net/TgWebhookLocalServer.h
@@ -37,12 +37,11 @@ public:
TgWebhookLocalServer(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>& acceptor, const std::string& path, EventHandler* eventHandler) = delete;
TgWebhookLocalServer(const std::string& path, const EventHandler* eventHandler) :
- TgWebhookServer(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>(new boost::asio::local::stream_protocol::acceptor(_ioService, boost::asio::local::stream_protocol::endpoint(path))), path, eventHandler)
+ TgWebhookServer<boost::asio::local::stream_protocol>(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>(new boost::asio::local::stream_protocol::acceptor(_ioService, boost::asio::local::stream_protocol::endpoint(path))), path, eventHandler)
{
}
TgWebhookLocalServer(const std::string& path, const Bot& bot) : TgWebhookLocalServer(path, &bot.getEventHandler()) {
-
}
};