문제

I would like to fill in a QList<double> with const double values.

These const double are returned by a method which i am not to change.

How to do it simply ?

도움이 되었습니까?

해결책

Since the values are being copied, it doesn't matter whether the function returns them as const or not.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top