Ps
Size: a a a
Ps
Ps
C
~/../json_dto/pub.hpp:372:44: error: expected ‘)’ before ‘&’ tokenсобственно, вопрос: что не так?
372 | container_filler_impl_t<C, true>( C & cnt )
| ~ ^~
| )
~/../json_dto/pub.hpp:373:31: error: expected unqualified-id before ‘,’ token
373 | : m_cnt{ cnt }, m_it{ cnt.before_begin() }
| ^
~/../json_dto/pub.hpp:374:9: error: expected unqualified-id before ‘{’ token
374 | {}
| ^
ЛС
Modbus::readRequest(int startAddress, int count, void (*callback)(QList<qint16> result)) { ... }
`void HardwareController::checkVfdState(const QJSValue &callback) {Но комплиятор говорит что так делать нельзя. Если убираю [callback] то все работает. То есть такой вариант компилируется:
auto lamb = [callback](QList<qint16> result){
qDebug()<<result;
};
m_modbus->readRequest(0x2100, 0x0001, lamb);
}
void HardwareController::checkVfdState(const QJSValue &callback) {Подскажите пожалуйста что я делаю не правильно?
auto lamb = [](QList<qint16> result){
qDebug()<<result;
};
m_modbus->readRequest(0x2100, 0x0001, lamb);
}
S
АК
АК
АК
АК
АК
АК
АК
АК
АК
unordered_map< int, list<int> >
?АК
АК
АК
ЕЕ
unordered_map<Vec,
std::vector<Vec>
, hast_t>
Vec {
double x, y, z }
D
АК