[packages] libtorrent: update to r1123 (#6624)
[openwrt/svn-archive/archive.git] / libs / libtorrent / patches / 121-fix-socket_set-template.diff
1 Index: libtorrent/src/net/socket_set.h
2 ===================================================================
3 --- libtorrent/src/net/socket_set.h (revision 1121)
4 +++ libtorrent/src/net/socket_set.h (working copy)
5 @@ -53,12 +53,12 @@
6
7 // Propably should rename to EventSet...
8
9 -class SocketSet : private std::vector<Event*, rak::cacheline_allocator<> > {
10 +class SocketSet : private std::vector<Event*, rak::cacheline_allocator<Event*> > {
11 public:
12 typedef uint32_t size_type;
13
14 - typedef std::vector<Event*, rak::cacheline_allocator<> > base_type;
15 - typedef std::vector<size_type, rak::cacheline_allocator<> > Table;
16 + typedef std::vector<Event*, rak::cacheline_allocator<Event*> > base_type;
17 + typedef std::vector<size_type, rak::cacheline_allocator<size_type> > Table;
18
19 static const size_type npos = static_cast<size_type>(-1);
20