Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Colons for everyone!

...

When attempting to const-qualify a type as part of a declaration that uses reference type, a programmer may accidentally write:

Code Block
bgColor#ffcccc
langcpp
char &const p;

instead of:

Code Block
bgColor#ccccff
langcpp
char const &p; // Or: const char &p;

...