const correctness on function pointer