Topic: Redundant scope qualification of members


Author: daniel@cse.ucsc.edu (Daniel R. Edelson)
Date: 4 Dec 92 19:37:53 GMT
Raw View
Can a class member declaration be explicitly scoped
to its own class? e.g.,

struct S {
 int S::i;
 void S::f() { }
};

If so, does the same hold true for template classes?

template<class T>
struct S {
 T S<T>::x;
 void S<T>::f() { }
};

Thanks again
Daniel Edelson