News for hackers. Stuff that matters.
Re:Torvalds: Standards need to be questioned by ramshorns on Tuesday June 05, 2018 @06:42PM (#17242738)
What is reinterpret_cast for, if not type punning?
Re:Torvalds: Standards need to be questioned by tom_ on Tuesday June 05, 2018 @07:01PM (#17242874)
Unadjusted conversion between pointer types that have matching cv qualifiers.
Re:Torvalds: Standards need to be questioned by kazinator on Tuesday June 05, 2018 @07:07PM (#17242903)
Pointers are converted in order that they be used. Though the uses may be undefined, there is value in the conversion having a well-defined syntax. In effect, C and C++ allow certain intents to be expressed in a common way, without requiring implementations to make those intents work. This is better than having compiler-specific syntax for that sort of thing.