closed #5110, add const reference to typedef