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
}