KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I overloaded the << operator of a class. How do I have to overload the operator if I want to use it on pointers, like the following? class A { std::string operator<<(std::string&); } aInst << "This works"; aPointer << "This doesnt work"; aPointer->operator<<("Whereas this works but is useless"); I hope you can help me. heinrich
Tags (comma-separated)
Save Edits
Cancel