friend function could be an option
But I agree with Speedo, makes sense to have it as a member function as it operates exclusively on the class, unless there is a special reason.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 5 of 5
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |