no viable overloaded '=' for QDateTime
Solved
General and Desktop
-
How can I use a local variable in a lambda?
test.cpp:17:18: error: no viable overloaded '=' qdatetime.h:310:16: note: candidate function not viable: 'this' argument has type 'const QDateTime', but method is not marked const qdatetime.h:311:16: note: candidate function not viable: 'this' argument has type 'const QDateTime', but method is not marked const
-
Apart from the fact that the rest is completely wrong, according to the c++ standard the captured objects are const inside the lambda