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

Suggestion: Add Q_DECLARE_FRIENDS_FOR_FLAGS()

    XMLWordPrintable

Details

    Description

      Q_DECLARE_FLAGS() is useful for declaring type-safe flags. However, Q_DECLARE_OPERATORS_FOR_FLAGS() fails if the flag type is a private enum in a class. It would therefore be useful to have Q_DECLARE_FRIENDS_FOR_FLAGS() which would contain all of the necessary friend declarations so that Q_DECLARE_OPERATORS_FOR_FLAGS() could be used for private enums.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            engvolds Morten Engvoldsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes