N
n2xssvv g02gfr12930
Does anyone know of an example of overloading operator ->*
Cheers
JB
Cheers
JB
n2xssvv said:Does anyone know of an example of overloading operator ->*
Gianni said:Austria C++ has "smart pointers" that do this.
The operator needs to return a pointer.
struct T
{
int x;
};
struct X
{
T * m_ptr;
T * operator->()
{
return m_ptr;
}
};
ben said:How do you overload two operators at the same time???
Ben
n2xssvv said:Does anyone know of an example of overloading operator ->*
Cheers
JB
n2xssvv said:That's not an example of overloading 'operator ->*' but 'operator ->'.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.