HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by stefan_ | Hacker News Reader
Parent
Full thread
stefan_
·
I'm sure thats disallowed for the C-style cast.
View on HN
cpgxiii
·
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).
daringrain32781
·
C++17 has the [[maybe_unused]] attribute.
Reply on news.ycombinator.com