Open GoogleCodeExporter opened 8 years ago
it looks like this might be you linking against a different boost-system
library than libtorrent links against. I'm assuming the relevant change is
moving interpreting the error_code into the header (using your version of
boost-system) instead of leaving it in alert.cpp, using libtorrent's
boost-system.
Original comment by arvid.no...@gmail.com
on 1 Dec 2011 at 3:02
i'm linking against libboost_system-mt.so.1.47.0
yep, only changing to const& fix the problem.
i'm also experiencing problems with the state_update_alert
which i can read the state_update_alert->message() but my if handler does not
catch the alert!
such as:
-----------
printf("alert message is %s\n", a->message()); // ok here
if (state_update_alert *su = alert_cast<state_update_alert>(a))
{
... // never called
}
-----
I'm trying to fix this issue (against boost 1.47.0) by explicitly defining the
constructor of state_update_alert() which is not defined yet.
If i get some good point, i'll post here.
Original comment by mul...@gmail.com
on 1 Dec 2011 at 3:25
it worked :)
at alert_tyoes.hpp
struct TORRENT_EXPORT state_update_alert : alert
{
+ state_update_alert() {}
TORRENT_DEFINE_ALERT(state_update_alert);
const static int static_category = alert::status_notification;
virtual std::string message() const;
virtual bool discardable() const { return false; }
std::vector<torrent_status> status;
};
Original comment by mul...@gmail.com
on 1 Dec 2011 at 3:48
Original issue reported on code.google.com by
mul...@gmail.com
on 30 Nov 2011 at 6:47