I think the forward declaration has to look something like:

Qt Code:
  1. template <class T> class vector;
To copy to clipboard, switch view to plain text mode