I'm using the standard file, I"m also using the Eclipse IDT. When I use the vector template in my header files, I get "vector does not name a type" error, or I get "Type 'vector ' could not be resolved". I am able to use vector fine in .cpp files in the project. I'm including the header file code below
#ifndef TX_H_
#define TX_H_
#include <vector>
class Tx {
int nT;
vector<float> beamform;
public:
Tx(int);
virtual ~Tx();
vector <float> Trans(float);
};
#endif /* TX_H_ */
The line "vector beamform" produces the "vector does not name a type" error. The line vector Trans(float); produces the "Type 'vector ' could not be resolved" error. Please advise. I do need to pass vectors as parameters. So, if I'm not allowed to declare vector types, what is the workaround ?