Skip to content

Commit

Permalink
Add missing vector include
Browse files Browse the repository at this point in the history
```
In file included from option_strings.cc:43:
./../../torrent/connection_manager.h:246:8: error: ‘vector’ in namespace ‘std’ does not name a template type
  246 |   std::vector<TrackerUdp*> m_tracker_udp_list;
      |        ^~~~~~
./../../torrent/connection_manager.h:51:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
   50 | #include <torrent/common.h>
  +++ |+#include <vector>
```
  • Loading branch information
stickz committed Nov 25, 2024
1 parent 3d9a1c1 commit 52693ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libtorrent/src/torrent/connection_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
#include lt_tr1_functional
#include <torrent/common.h>

#ifdef USE_UDNS
#include <vector>
#endif

namespace torrent {

#ifdef USE_UDNS
Expand Down

0 comments on commit 52693ae

Please sign in to comment.