Timeline for changing value of a private member of a class in c++ without using member or friend function
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 9, 2013 at 17:56 | comment | added | UncleZeiv | True. By singling out the C-style cast I just meant that it's a particularly strong type of cast... you are basically shouting "I know what I am doing!" :) | |
| Aug 9, 2013 at 16:22 | comment | added | Bill Door | I would add that using any kind of cast (c-style or c++ style) tells the compiler that you, the programmer, are smarter than the compiler. You are telling the compiler "trust me, I know what I am doing." Umm, yeah. | |
| Aug 9, 2013 at 13:33 | history | answered | UncleZeiv | CC BY-SA 3.0 |