Sorry, I made a mistake in my template declaration. Try:

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

That compiles fine on my computer.