fix template function missing auto keyword.