template <typename T>class myClass{public: T& operator[](int x) { return myVector[x]; // here give me error }private: std::vector<T*> myVector;};I Use:
myClass <int> test;test[0] = 3;When i compile the compiler give me the error C2440 because it can't convert from int* to int&