Anything wrong with this overloading
TankStatus is enum type....Code:TankStatus operator=(int number, TankStatus ts) { return ts = number; } //: error C2801: 'operator =' must be a non-static member
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Thread: Overloading '=', getting errorsThreaded View
|
Click Here to Expand Forum to Full Width |