aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: [SearchList.cpp] vector >::at  (Read 2751 times)

thermoman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 40
[SearchList.cpp] vector >::at
« on: July 13, 2004, 04:33:34 AM »

Code: [Select]
SearchList.cpp: In method `CSearchFile::CSearchFile(CSearchFile *)':
SearchList.cpp:91: no matching function for call to `vector >::at (unsigned int &)'

Could this be made gcc 2.xx compatible? seems gcc 2.xx has no 'at' implemention.

thermoman
Logged
Gentoo & Bittorrent User

Avi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 35
Re: [SearchList.cpp] vector >::at
« Reply #1 on: July 13, 2004, 10:10:14 AM »

You should be able to take the vector's name and use the [] operator (altough I think that it doesn't signel an out-of-range requests like at() does).
Logged

thermoman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 40
Re: [SearchList.cpp] vector >::at
« Reply #2 on: July 13, 2004, 11:18:12 PM »

Thanks - worked. But quick'n'dirty.

thermoman
Logged
Gentoo & Bittorrent User