Fixed identifying a function as const from the return type