Clang compile fix (const function)