Timeline for How to overload unary minus operator in C++?
Current License: CC BY-SA 2.5
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 24, 2024 at 15:02 | comment | added | Chifti Saidi | Should return a const Vector. | |
| Nov 29, 2012 at 19:00 | comment | added | AnT stands with Russia | @Kornel Kisielewicz: Calling it "the only right solution" is misleading. Unary - can be overloaded by a standalone function as well, which would closely mirror the OP's implementation of oppositeVector. | |
| Jan 28, 2010 at 15:14 | vote | accept | Ilya Suzdalnitski | ||
| Jan 28, 2010 at 14:57 | history | edited | anon | CC BY-SA 2.5 | deleted 4 characters in body |
| Jan 28, 2010 at 14:50 | history | answered | anon | CC BY-SA 2.5 |