Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.1.0
-
None
-
Linux e5-2620v2 5.12.5-arch1-1 #1 SMP PREEMPT Wed, 19 May 2021 10:32:40 +0000 x86_64 GNU/Linux
Description
Again, if I compile [this|https://github.com/user1095108/cairowidget,] there are compile errors:
In file included from /usr/include/qt6/QtCore/qobject.h:57, from /usr/include/qt6/QtCore/qcoreapplication.h:46, from /usr/include/qt6/QtWidgets/qapplication.h:44, from /usr/include/qt6/QtWidgets/QApplication:1, from example3.cpp:1: /usr/include/qt6/QtCore/qproperty.h:55:82: error: 'source_location' is not a member of 'std' 55 | #define QT_PROPERTY_DEFAULT_BINDING_LOCATION QPropertyBindingSourceLocation(std::source_location::current()) | ^~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/qproperty.h:195:92: note: in expansion of macro 'QT_PROPERTY_DEFAULT_BINDING_LOCATION' 195 | auto makePropertyBinding(Functor &&f, const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt6/QtCore/qproperty.h:54:1: note: 'std::source_location' is defined in header '<source_location>'; did you forget to '#include <source_location>'? 53 | #include <experimental/source_location> +++ |+#include <source_location> 54 | #define QT_PROPERTY_COLLECT_BINDING_LOCATION /usr/include/qt6/QtCore/qproperty.h:55:82: error: 'source_location' is not a member of 'std' 55 | #define QT_PROPERTY_DEFAULT_BINDING_LOCATION QPropertyBindingSourceLocation(std::source_location::current())
There are many more, but including them all would not benefit anyone.
Attachments
Issue Links
- duplicates
-
QTBUG-93270 QPropertyBindingSourceLocation won't compile bacause of wrong source_location selection
-
- Closed
-