allow view function on const-qualified inputs