Preserving Const
Make everything const by default (not necessarily constexpr). This includes everything from functions, to local variables (most important) to function parameters. const greatly helps with compiler optimisations and leads to a lot of code being resolved at compile time and reducing aliasing & duplication. Using const is also beneficial in...
Jun 2018 — 3 minute read