Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
stefan_
3mo ago
0 comments
Share
I'm sure thats disallowed for the C-style cast.
0 comments
default
newest
oldest
cpgxiii
3mo ago
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
3mo ago
C++17 has the [[maybe_unused]] attribute.
j
/
k
navigate · click thread line to collapse