79298226

Date: 2024-12-20 19:30:17
Score: 1
Natty:
Report link

If you write const const after a function name it is syntactically invalid because C++ language does not permit such duplication. The second const is simply redundant and results in a compiler error.

code should be like this !!

customType foo::bar(void) const {
    // baz
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sourabh Singh Bais