سؤال

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