Why is this template initialized differently?