Your compiler is telling you everything you need to know. Function signatures must match EXACTLY, and your's don't, because you've dropped the 'const' specification from the implementation, just as the error message points out.