3 ms·
The other advantage other than greppabilty/documentation is that the compiler will limit what the static_cast does. Since a c style cast can be a reinterpret ca
by catblast 6y ago
The other advantage other than greppabilty/documentation is that the compiler will limit what the static_cast does. Since a c style cast can be a reinterpret cast or a const cast you do lose some compiler provided protection.
- keldaris 6y agoThat's true, but there's a reason I chose not to list it - this has never actually saved me from a bug, ever. Of course, as I said, your mileage may vary.