daohailam
asked on
Overload operator ?
How to overload "->", "->*" operator ? (UNIX g++)
ASKER
Edited text of question
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
this is my case:
template<class T>
class foo
{
private:
T* t;
public:
T* operator ->()
{
return( t );
}
};
thanks !
template<class T>
class foo
{
private:
T* t;
public:
T* operator ->()
{
return( t );
}
};
thanks !
The operator "->*" can implemented the same as "->"
Do you know anything about operator overloading?