Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm sure thats disallowed for the C-style cast.




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).

C++17 has the [[maybe_unused]] attribute.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: