If you run into a compiler error like this compiling a template on HP 11.00:
Error 419: “myfile.cpp”, line 5 # ‘iterator’ is used as a type, but has not been defined as a type.
std::vector::iterator j;
you need to specify the ‘typename’ before vector. e.g.
typename std::vector::iterator j;