Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 6.0.2
-
None
-
-
3cdec51eaf (qt-creator/qt-creator/7.0) 3cdec51eaf (qt-creator/qt-creator/master) 3cdec51eaf (qt-creator/qt-creator/qds-3.3) 3cdec51eaf (qt-creator/tqtc-qt-creator/7.0)
Description
See the little example. I like to auto generate getter and setter for the member minimumValueFunctor.
class { std::function<quint32()> minimumValueFunctor; }
The result is wrong, since the quint32 isn't copied. I get:
class { const std::function<()> &getMinimumValueFunctor() const; void setMinimumValueFunctor(const std::function<()> &newMinimumValueFunctor); std::function<quint32()> minimumValueFunctor; }