Created
August 26, 2023 11:46
-
-
Save jrobinson-uk/7be3efaa0ffcbee7c2d0a181c694a6af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1/98] Building CXX object src/common/CMakeFiles/common_module.dir/recentfiles.cpp.o | |
[2/98] Building CXX object src/common/CMakeFiles/common_module.dir/systeminfo.cpp.o | |
[3/98] Building CXX object src/common/CMakeFiles/common_module.dir/document.cpp.o | |
FAILED: src/common/CMakeFiles/common_module.dir/document.cpp.o | |
/usr/bin/c++ -DBS_DESKTOP -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MESSAGELOGCONTEXT -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_STRICT_ITERATORS -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_XML_LIB -I/home/legojames/dev/brickstore-2023.8.1/src/common/common_module_autogen/include -I/home/legojames/dev/brickstore-2023.8.1/3rdparty -I/home/legojames/dev/brickstore-2023.8.1/src -I/home/legojames/dev/brickstore-2023.8.1/src/generated -I/home/legojames/dev/brickstore-2023.8.1/src/common -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src/qcoro -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src/qcoro/network -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-build/qcoro/network -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-build/qcoro -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src/qcoro/core -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-build/qcoro/core -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src/qcoro/qml -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-build/qcoro/qml -isystem /opt/Qt/6.2.4-armv7l/include/QtQml/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtQml/6.2.4/QtQml -isystem /opt/Qt/6.2.4-armv7l/include/QtCore/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtCore/6.2.4/QtCore -isystem /opt/Qt/6.2.4-armv7l/include/QtCore -isystem /opt/Qt/6.2.4-armv7l/include -isystem /opt/Qt/6.2.4-armv7l/mkspecs/linux-g++ -isystem /opt/Qt/6.2.4-armv7l/include/QtQml -isystem /opt/Qt/6.2.4-armv7l/include/QtNetwork -isystem /opt/Qt/6.2.4-armv7l/include/QtConcurrent -isystem /opt/Qt/6.2.4-armv7l/include/QtXml -isystem /opt/Qt/6.2.4-armv7l/include/QtQuick -isystem /opt/Qt/6.2.4-armv7l/include/QtGui -isystem /opt/Qt/6.2.4-armv7l/include/QtQmlModels -isystem /opt/Qt/6.2.4-armv7l/include/QtOpenGL -isystem /opt/Qt/6.2.4-armv7l/include/QtQuick/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtQuick/6.2.4/QtQuick -isystem /opt/Qt/6.2.4-armv7l/include/QtGui/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtGui/6.2.4/QtGui -isystem /opt/Qt/6.2.4-armv7l/include/QtQmlModels/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtQmlModels/6.2.4/QtQmlModels -isystem /opt/Qt/6.2.4-armv7l/include/QtWidgets -isystem /opt/Qt/6.2.4-armv7l/include/QtPrintSupport -Wall -Wextra -Wpedantic -Werror -fcoroutines -pthread -std=gnu++2a -MD -MT src/common/CMakeFiles/common_module.dir/document.cpp.o -MF src/common/CMakeFiles/common_module.dir/document.cpp.o.d -o src/common/CMakeFiles/common_module.dir/document.cpp.o -c /home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:62)> [with auto:62 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:62)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:62)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:62)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:62)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[11]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:62)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:277:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
277 | if (co_await UIHelpers::question(tr("Overwrite the currently selected items?"), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:284:33: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
284 | auto newRow = co_await m_model->addLots(std::move(lots), DocumentModel::AddLotMode::ConsolidateInteractive); | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:86)> [with auto:86 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:86)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:86)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:86)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:86)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[15]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:86)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:328:19: error: ‘co_return’ cannot be used in a ‘constexpr’ function | |
328 | co_return; | |
| ^~~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:329:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
329 | if (auto d = co_await UIHelpers::getDouble(tr("Enter the new price for all selected items:"), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:88)> [with auto:88 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:88)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:88)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:88)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:88)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[14]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:88)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:339:19: error: ‘co_return’ cannot be used in a ‘constexpr’ function | |
339 | co_return; | |
| ^~~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:340:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
340 | if (auto d = co_await UIHelpers::getDouble(tr("Enter the new cost for all selected items:"), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:90)> [with auto:90 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:90)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:90)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:90)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:90)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[23]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:90)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:350:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
350 | if (auto d = co_await UIHelpers::getDouble(tr("Enter the cost amount to spread over all the selected items:"), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:91)> [with auto:91 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:91)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:91)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:91)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:91)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[24]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:91)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:358:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
358 | if (auto d = co_await UIHelpers::getDouble(tr("Enter the cost amount to spread over all the selected items:"), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:92)> [with auto:92 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:92)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:92)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:92)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:92)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[16]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:92)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:365:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
365 | if (auto i = co_await UIHelpers::getInteger(tr("Divide the quantities of all selected items by this number.<br /><br />(A check is made if all quantites are exactly divisible without reminder, before this operation is performed.)"), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:93)> [with auto:93 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:93)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:93)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:93)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:93)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[18]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:93)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:371:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
371 | if (auto i = co_await UIHelpers::getInteger(tr("Multiply the quantities of all selected items with this factor."), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:94)> [with auto:94 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:94)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:94)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:94)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:94)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[10]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:94)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:378:19: error: ‘co_return’ cannot be used in a ‘constexpr’ function | |
378 | co_return; | |
| ^~~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:379:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
379 | if (auto i = co_await UIHelpers::getInteger(tr("Set bulk quantity for the selected items:"), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:95)> [with auto:95 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:95)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:95)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:95)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:95)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[10]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:95)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:388:19: error: ‘co_return’ cannot be used in a ‘constexpr’ function | |
388 | co_return; | |
| ^~~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:389:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
389 | if (auto i = co_await UIHelpers::getInteger(tr("Set sale in percent for the selected items (this will <u>not</u> change any prices).<br />Negative values are also allowed."), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:96)> [with auto:96 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:96)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:96)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:96)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:96)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[13]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:96)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:397:19: error: ‘co_return’ cannot be used in a ‘constexpr’ function | |
397 | co_return; | |
| ^~~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:398:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
398 | if (auto i = co_await UIHelpers::getInteger(tr("Enter the new quantities for all selected items:"), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:97)> [with auto:97 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:97)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:97)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:97)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:97)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[16]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:97)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:406:19: error: ‘co_return’ cannot be used in a ‘constexpr’ function | |
406 | co_return; | |
| ^~~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:407:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
407 | if (auto s = co_await UIHelpers::getString(tr("Enter the new remark for all selected items:"), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:99)> [with auto:99 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:99)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:99)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:99)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:99)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[16]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:99)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:414:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
414 | if (auto s = co_await UIHelpers::getString(tr("Enter the text, that should be added to the remarks of all selected items:"))) { | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:100)> [with auto:100 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:100)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:100)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:100)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:100)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[16]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:100)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:419:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
419 | if (auto s = co_await UIHelpers::getString(tr("Enter the text, that should be removed from the remarks of all selected items:"))) { | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:101)> [with auto:101 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:101)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:101)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:101)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:101)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[17]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:101)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:425:19: error: ‘co_return’ cannot be used in a ‘constexpr’ function | |
425 | co_return; | |
| ^~~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:426:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
426 | if (auto s = co_await UIHelpers::getString(tr("Enter the new comment for all selected items:"), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:103)> [with auto:103 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:103)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:103)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:103)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:103)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[17]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:103)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:433:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
433 | if (auto s = co_await UIHelpers::getString(tr("Enter the text, that should be added to the comments of all selected items:"))) { | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:104)> [with auto:104 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:104)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:104)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:104)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:104)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[17]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:104)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:438:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
438 | if (auto s = co_await UIHelpers::getString(tr("Enter the text, that should be removed from the comments of all selected items:"))) { | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:105)> [with auto:105 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:105)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:105)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:105)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:105)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[14]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:105)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:444:19: error: ‘co_return’ cannot be used in a ‘constexpr’ function | |
444 | co_return; | |
| ^~~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:445:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
445 | if (auto s = co_await UIHelpers::getString(tr("Reserve all selected items for this specific buyer (BrickLink username):"), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:106)> [with auto:106 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:106)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:106)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:106)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:106)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[17]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:106)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:452:19: error: ‘co_return’ cannot be used in a ‘constexpr’ function | |
452 | co_return; | |
| ^~~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:453:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
453 | if (auto s = co_await UIHelpers::getString(tr("Enter the new marker text for all selected items:"), | |
| ^~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp: In instantiation of ‘Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:107)> [with auto:107 = bool]’: | |
/usr/include/c++/10/bits/invoke.h:60:36: required from ‘constexpr _Res std::__invoke_impl(std::__invoke_other, _Fn&&, _Args&& ...) [with _Res = QCoro::Task<void>; _Fn = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:107)>&; _Args = {bool}]’ | |
/usr/include/c++/10/bits/invoke.h:110:2: required from ‘constexpr std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> std::__invoke_r(_Callable&&, _Args&& ...) [with _Res = void; _Callable = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:107)>&; _Args = {bool}; std::enable_if_t<is_invocable_r_v<_Res, _Callable, _Args ...>, _Res> = void]’ | |
/usr/include/c++/10/bits/std_function.h:291:30: required from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = void; _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:107)>; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/std_function.h:610:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:107)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {bool}]’ | |
/usr/include/c++/10/bits/stl_pair.h:353:64: required from ‘constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = const char (&)[18]; _U2 = Document::Document(DocumentModel*, const QByteArray&, QObject*)::<lambda(auto:107)>; typename std::enable_if<(std::_PCC<true, _T1, _T2>::_MoveConstructiblePair<_U1, _U2>() && std::_PCC<true, _T1, _T2>::_ImplicitlyMoveConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = true; _T1 = QByteArray; _T2 = std::function<void(bool)>]’ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:511:5: required from here | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:460:19: error: ‘co_return’ cannot be used in a ‘constexpr’ function | |
460 | co_return; | |
| ^~~~~~~~~ | |
/home/legojames/dev/brickstore-2023.8.1/src/common/document.cpp:461:28: error: ‘co_await’ cannot be used in a ‘constexpr’ function | |
461 | if (auto c = co_await UIHelpers::getColor(selectedLots().front()->markerColor())) { | |
| ^~~~~~~~ | |
[4/98] Building CXX object src/common/CMakeFiles/common_module.dir/uihelpers.cpp.o | |
FAILED: src/common/CMakeFiles/common_module.dir/uihelpers.cpp.o | |
/usr/bin/c++ -DBS_DESKTOP -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MESSAGELOGCONTEXT -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_STRICT_ITERATORS -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_XML_LIB -I/home/legojames/dev/brickstore-2023.8.1/src/common/common_module_autogen/include -I/home/legojames/dev/brickstore-2023.8.1/3rdparty -I/home/legojames/dev/brickstore-2023.8.1/src -I/home/legojames/dev/brickstore-2023.8.1/src/generated -I/home/legojames/dev/brickstore-2023.8.1/src/common -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src/qcoro -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src/qcoro/network -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-build/qcoro/network -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-build/qcoro -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src/qcoro/core -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-build/qcoro/core -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src/qcoro/qml -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-build/qcoro/qml -isystem /opt/Qt/6.2.4-armv7l/include/QtQml/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtQml/6.2.4/QtQml -isystem /opt/Qt/6.2.4-armv7l/include/QtCore/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtCore/6.2.4/QtCore -isystem /opt/Qt/6.2.4-armv7l/include/QtCore -isystem /opt/Qt/6.2.4-armv7l/include -isystem /opt/Qt/6.2.4-armv7l/mkspecs/linux-g++ -isystem /opt/Qt/6.2.4-armv7l/include/QtQml -isystem /opt/Qt/6.2.4-armv7l/include/QtNetwork -isystem /opt/Qt/6.2.4-armv7l/include/QtConcurrent -isystem /opt/Qt/6.2.4-armv7l/include/QtXml -isystem /opt/Qt/6.2.4-armv7l/include/QtQuick -isystem /opt/Qt/6.2.4-armv7l/include/QtGui -isystem /opt/Qt/6.2.4-armv7l/include/QtQmlModels -isystem /opt/Qt/6.2.4-armv7l/include/QtOpenGL -isystem /opt/Qt/6.2.4-armv7l/include/QtQuick/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtQuick/6.2.4/QtQuick -isystem /opt/Qt/6.2.4-armv7l/include/QtGui/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtGui/6.2.4/QtGui -isystem /opt/Qt/6.2.4-armv7l/include/QtQmlModels/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtQmlModels/6.2.4/QtQmlModels -isystem /opt/Qt/6.2.4-armv7l/include/QtWidgets -isystem /opt/Qt/6.2.4-armv7l/include/QtPrintSupport -Wall -Wextra -Wpedantic -Werror -fcoroutines -pthread -std=gnu++2a -MD -MT src/common/CMakeFiles/common_module.dir/uihelpers.cpp.o -MF src/common/CMakeFiles/common_module.dir/uihelpers.cpp.o.d -o src/common/CMakeFiles/common_module.dir/uihelpers.cpp.o -c /home/legojames/dev/brickstore-2023.8.1/src/common/uihelpers.cpp | |
/home/legojames/dev/brickstore-2023.8.1/src/common/uihelpers.cpp: In member function ‘virtual QCoro::Task<UIHelpers::StandardButton> UIHelpers::showMessageBoxHelper(QString, UIHelpers::Icon, UIHelpers::StandardButtons, UIHelpers::StandardButton, QString)’: | |
/home/legojames/dev/brickstore-2023.8.1/src/common/uihelpers.cpp:53:1: error: statement has no effect [-Werror=unused-value] | |
53 | } | |
| ^ | |
cc1plus: all warnings being treated as errors | |
[5/98] Building CXX object src/common/CMakeFiles/common_module.dir/application.cpp.o | |
FAILED: src/common/CMakeFiles/common_module.dir/application.cpp.o | |
/usr/bin/c++ -DBS_DESKTOP -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MESSAGELOGCONTEXT -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_STRICT_ITERATORS -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_XML_LIB -I/home/legojames/dev/brickstore-2023.8.1/src/common/common_module_autogen/include -I/home/legojames/dev/brickstore-2023.8.1/3rdparty -I/home/legojames/dev/brickstore-2023.8.1/src -I/home/legojames/dev/brickstore-2023.8.1/src/generated -I/home/legojames/dev/brickstore-2023.8.1/src/common -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src/qcoro -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src/qcoro/network -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-build/qcoro/network -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-build/qcoro -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src/qcoro/core -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-build/qcoro/core -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-src/qcoro/qml -I/home/legojames/dev/brickstore-2023.8.1/_deps/qcoro-build/qcoro/qml -isystem /opt/Qt/6.2.4-armv7l/include/QtQml/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtQml/6.2.4/QtQml -isystem /opt/Qt/6.2.4-armv7l/include/QtCore/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtCore/6.2.4/QtCore -isystem /opt/Qt/6.2.4-armv7l/include/QtCore -isystem /opt/Qt/6.2.4-armv7l/include -isystem /opt/Qt/6.2.4-armv7l/mkspecs/linux-g++ -isystem /opt/Qt/6.2.4-armv7l/include/QtQml -isystem /opt/Qt/6.2.4-armv7l/include/QtNetwork -isystem /opt/Qt/6.2.4-armv7l/include/QtConcurrent -isystem /opt/Qt/6.2.4-armv7l/include/QtXml -isystem /opt/Qt/6.2.4-armv7l/include/QtQuick -isystem /opt/Qt/6.2.4-armv7l/include/QtGui -isystem /opt/Qt/6.2.4-armv7l/include/QtQmlModels -isystem /opt/Qt/6.2.4-armv7l/include/QtOpenGL -isystem /opt/Qt/6.2.4-armv7l/include/QtQuick/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtQuick/6.2.4/QtQuick -isystem /opt/Qt/6.2.4-armv7l/include/QtGui/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtGui/6.2.4/QtGui -isystem /opt/Qt/6.2.4-armv7l/include/QtQmlModels/6.2.4 -isystem /opt/Qt/6.2.4-armv7l/include/QtQmlModels/6.2.4/QtQmlModels -isystem /opt/Qt/6.2.4-armv7l/include/QtWidgets -isystem /opt/Qt/6.2.4-armv7l/include/QtPrintSupport -Wall -Wextra -Wpedantic -Werror -fcoroutines -pthread -std=gnu++2a -MD -MT src/common/CMakeFiles/common_module.dir/application.cpp.o -MF src/common/CMakeFiles/common_module.dir/application.cpp.o.d -o src/common/CMakeFiles/common_module.dir/application.cpp.o -c /home/legojames/dev/brickstore-2023.8.1/src/common/application.cpp | |
/home/legojames/dev/brickstore-2023.8.1/src/common/application.cpp: In member function ‘QCoro::Task<bool> Application::updateDatabase()’: | |
/home/legojames/dev/brickstore-2023.8.1/src/common/application.cpp:554:1: error: statement has no effect [-Werror=unused-value] | |
554 | } | |
| ^ | |
cc1plus: all warnings being treated as errors | |
[6/98] Building CXX object src/common/CMakeFiles/common_module.dir/brickstore_wrapper.cpp.o | |
ninja: build stopped: subcommand failed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment