Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Cast to void can be used to explicitly mark a variable unused, suppressing the warnings from the compiler or the static analyzer: (void) unused_variable;.

Native types

Usage of intunsigned, and all other native integral types is not permitted. Use cstdint instead.

Usage of floatdoublelong double is not recommended; consider aliasing them to float32_t and such instead.

Scoping

The statement using namespace should not be used, except in a very local scope (see an example below). Usage of this statement in a global scope or in a namespace scope is strictly prohibited.

...