W
wimalopaan
Hi,
in the following example
template<typename T>
class A {
public:
class B {
public:
B& operator++();
};
};
template<typename T>
typename A<T>::B& A<T>::B:perator++() {
return *this;
}
I get a warning
In file included from cvl0001.cc:1:
a.h:14: warning: prefix ‘typename A<T>::B& A<T>::B:perator++()’
should return ‘A<T>::B&’
Well, if define the op++() inside the nested template class B, all is
fine ...
What's wrong here?
in the following example
template<typename T>
class A {
public:
class B {
public:
B& operator++();
};
};
template<typename T>
typename A<T>::B& A<T>::B:perator++() {
return *this;
}
I get a warning
In file included from cvl0001.cc:1:
a.h:14: warning: prefix ‘typename A<T>::B& A<T>::B:perator++()’
should return ‘A<T>::B&’
Well, if define the op++() inside the nested template class B, all is
fine ...
What's wrong here?