S
sam
Hi,
I want to ask question about following code:
template <class T>
class Wrapper {
public:
T* operator->() { return &myT; }
private:
T myT;
};
int main() {
Wrapper<Thing> wThing;
wThing->Foo(); // calls Thing::Foo()
...
}
Whats the meaning of Thing here ?
I want to ask question about following code:
template <class T>
class Wrapper {
public:
T* operator->() { return &myT; }
private:
T myT;
};
int main() {
Wrapper<Thing> wThing;
wThing->Foo(); // calls Thing::Foo()
...
}
Whats the meaning of Thing here ?