Iterator for vector of pointers to other class

Hi,
I have 2 classes: Bank and Account; the former has a vector of pointers to Account objects, but when I try to grab an iterator for this vector of pointers to objects..i get an error that

error: `template<class _Tp, class _Alloc> class std::vector' used without template parameters|


any help would be appreciated

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <vector>
#ifndef BANK_H_INCLUDED
#define BANK_H_INCLUDED

using namespace std;

class Bank{
    public:
        Bank(){
            ;
            }

      void  addAccount(Account *a){
          accounts.push_back(a);
           }
    void removeAccountById(const int id){
//NEXT LINE CAUSES THE ERROR
            vector::vector<Account* > it = accounts.begin();

        }

private:
 vector<Account*> accounts;

  };

#endif // BANK_H_INCLUDED

That line should be
vector<Account* >::iterator it = accounts.begin();
thanks!
Topic archived. No new replies allowed.