Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93966

compile bug in qproperty.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.1.0
    • Core: Other
    • None
    • Linux e5-2620v2 5.12.5-arch1-1 #1 SMP PREEMPT Wed, 19 May 2021 10:32:40 +0000 x86_64 GNU/Linux
    • Linux/X11

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thiago Thiago Macieira
              janezzabc Janez Žemva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes