We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 807169e commit 7534723Copy full SHA for 7534723
doc/developer-notes.md
@@ -104,6 +104,10 @@ code.
104
- `++i` is preferred over `i++`.
105
- `nullptr` is preferred over `NULL` or `(void*)0`.
106
- `static_assert` is preferred over `assert` where possible. Generally; compile-time checking is preferred over run-time checking.
107
+ - Use a named cast or functional cast, not a C-Style cast. When casting
108
+ between integer types, use functional casts such as `int(x)` or `int{x}`
109
+ instead of `(int) x`. When casting between more complex types, use static_cast.
110
+ Use reinterpret_cast and const_cast as appropriate.
111
112
Block style example:
113
```c++
0 commit comments