From 7f88f61780be4b7039a1cd96ef6a53ce58dd797a Mon Sep 17 00:00:00 2001
From: Arvid Norberg
When you get an alert, you can use typeid() or dynamic_cast<> to get more detailed information on exactly which type it is. i.e. what kind of error it is. You can also use a dispatcher mechanism that's available in libtorrent.
+All alert types are defined in the <libtorrent/alert_types.hpp> header file.
The alert class is the base class that specific messages are derived from. This is its synopsis:
diff --git a/docs/manual.rst b/docs/manual.rst index 055c2f700..9d113caf4 100755 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -1161,6 +1161,8 @@ When you get an alert, you can use ``typeid()`` or ``dynamic_cast<>`` to get mor information on exactly which type it is. i.e. what kind of error it is. You can also use a dispatcher_ mechanism that's available in libtorrent. +All alert types are defined in the ```` header file. + The ``alert`` class is the base class that specific messages are derived from. This is its synopsis:: diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index 8b17328ba..e6f69f3e9 100755 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -33,6 +33,8 @@ POSSIBILITY OF SUCH DAMAGE. #ifndef TORRENT_ALERT_TYPES_HPP_INCLUDED #define TORRENT_ALERT_TYPES_HPP_INCLUDED +#include + #include "libtorrent/alert.hpp" #include "libtorrent/torrent_handle.hpp"