Updated libQCR QcrComboBox object doesn't like anonymous function in constructor
NSXTool was giving me a libQCR error, so I updated it got the following compile error:
/home/zamaan/codes/tmp/nsxtool/gui/dialogs/MCAbsorptionDialog.cpp:35:6: error: no matching function for call to ‘QcrComboBox::QcrComboBox(const char [17], QcrCell<int>*&, MCAbsorptionDialog::MCAbsorptionDialog()::<lambda()>)’ 35 | }); | ^ In file included from /home/zamaan/codes/tmp/nsxtool/gui/dialogs/MCAbsorptionDialog.cpp:21: /home/zamaan/Software/include/QCR/widgets/controls.h:111:5: note: candidate: ‘QcrComboBox::QcrComboBox(const QString&, int, const QStringList&)’ 111 | QcrComboBox(const QString& name, int val, const QStringList& tags); | ^~~~~~~~~~~ /home/zamaan/Software/include/QCR/widgets/controls.h:111:66: note: no known conversion for argument 3 from ‘MCAbsorptionDialog::MCAbsorptionDialog()::<lambda()>’ to ‘const QStringList&’ 111 | QcrComboBox(const QString& name, int val, const QStringList& tags); | ~~~~~~~~~~~~~~~~~~~^~~~ /home/zamaan/Software/include/QCR/widgets/controls.h:110:5: note: candidate: ‘QcrComboBox::QcrComboBox(const QString&, QcrCell<int>*, const QStringList&)’ 110 | QcrComboBox(const QString& name, QcrCell<int>* cell, const QStringList& tags); | ^~~~~~~~~~~ /home/zamaan/Software/include/QCR/widgets/controls.h:110:77: note: no known conversion for argument 3 from ‘MCAbsorptionDialog::MCAbsorptionDialog()::<lambda()>’ to ‘const QStringList&’ 110 | QcrComboBox(const QString& name, QcrCell<int>* cell, const QStringList& tags); | ~~~~~~~~~~~~~~~~~~~^~~~
It looks like something has changed, and it doesn't like the anonymous function in the constructor definition any more. Removing the anonymous function fixes this, but I'm wondering if there's a better way to deal with this?