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