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

moc does not understand preprocessor token concatenation

    XMLWordPrintable

Details

    Description

      class A##B : public QObject
      {
      Q_OBJECT
      };

      gives:

      Error: Class contains Q_OBJECT macro but does not inherit from QObject

      Also, with moc -E:
      class A
      {
      Q_OBJECT
      };

      I.e., the rest of the line following ## seems to be simply dropped.

      Attachments

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

        Activity

          People

            stormols Marius Storm-Olsen
            hjk hjk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes