Re:The C++ standard for the F-35 Fighter Jet [video]
by stefan_ on Sunday December 07, 2025 @02:43PM
(#46184455)
I'm sure thats disallowed for the C-style cast.
[ Parent
| on HN ]
Re:The C++ standard for the F-35 Fighter Jet [video]
by daringrain32781 on Sunday December 07, 2025 @02:48PM
(#46184512)
C++17 has the [[maybe_unused]] attribute.
Re:The C++ standard for the F-35 Fighter Jet [video]
by cpgxiii on Sunday December 07, 2025 @02:57PM
(#46184585)
Fwiw, unused-cast-to-void is a case that GCC and Clang ignore when using -Wno-old-style-cast, which is what most projects prohibiting C-style casts are going to be using (or whatever the equivalent their compiler provides).