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