From 17750035ea2d5098b259393f52a01d468d302033 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 21 Feb 2010 05:20:13 +0000 Subject: [PATCH] alert_cast fix --- include/libtorrent/alert_types.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index e1d291cc7..0ff66ddb1 100644 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -59,6 +59,7 @@ namespace libtorrent : handle(h) {} + const static int alert_type = 1; virtual std::string message() const; torrent_handle handle; @@ -73,6 +74,7 @@ namespace libtorrent , pid(pid_) {} + const static int alert_type = 2; const static int static_category = alert::peer_notification; virtual int category() const { return static_category; } virtual std::string message() const; @@ -89,6 +91,7 @@ namespace libtorrent , url(url_) {} + const static int alert_type = 3; const static int static_category = alert::tracker_notification; virtual int category() const { return static_category; } virtual std::string message() const;