Loads correctly formated torrents from session dir when starting.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@294 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-02-20 17:21:23 +00:00
parent fa9a2d7e86
commit c4d548bafd
8 changed files with 83 additions and 22 deletions
+6 -6
View File
@@ -52,9 +52,9 @@ equal(Type t, Ftor f) {
return _equal<Type, Ftor>(t, f);
}
template <typename Dest, typename Src>
template <typename Src, typename Dest>
struct _on : public std::unary_function<typename Src::argument_type, typename Dest::result_type> {
_on(Dest d, Src s) : m_dest(d), m_src(s) {}
_on(Src s, Dest d) : m_dest(d), m_src(s) {}
typename Dest::result_type operator () (typename Src::argument_type arg) {
return m_dest(m_src(arg));
@@ -64,10 +64,10 @@ struct _on : public std::unary_function<typename Src::argument_type, typename De
Src m_src;
};
template <typename Dest, typename Src>
inline _on<Dest, Src>
on(Dest d, Src s) {
return _on<Dest, Src>(d, s);
template <typename Src, typename Dest>
inline _on<Src, Dest>
on(Src s, Dest d) {
return _on<Src, Dest>(s, d);
}
template <typename Cond, typename Then>