Article ID: 154112
Article Last Modified on 9/1/2005
179012 ClassView Lacks "Go to Declaration" for Static Data Members
/* Compile options needed:none
*/
template<class T>
class SimpleArray {
public:
SimpleArray();
~SimpleArray();
SimpleArray<T>& mult_by_scalar(T);// Cannot find the definition
int Numelem();
private:
int num_elts;
T* ptr_to_data;
};
template <class T>
SimpleArray<T>::SimpleArray() {
num_elts=0;
ptr_to_data = 0;
}
template <class T>
SimpleArray<T>::~SimpleArray() {
delete [] ptr_to_data;
}
template <class T>
SimpleArray<T>& SimpleArray<T>::mult_by_scalar(T rm) {
return *this;
}
template <class T>
int SimpleArray<T>::Numelem(){
return num_elts;
}
Keywords: kberrmsg kbbug kbfix kbnoupdate kbui kbvc500fix kbcpponly kbcompiler KB154112