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

QDBusReply lacks std::expected-like interface

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • D-Bus
    • None

      QDBusReply<T> essentially models std::expected<T, QDBusError>, so make sure it has the same interface as std::expected, so we can port to that come Qt 7 to gain std::expected's size improvements (union instead of struct), maybe even make QDBusReply an alias for std::expected.

      The most obvious shortfall is that value() is not overloaded on const/non-const rvalue/value, lack of op* and operator bool()

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

            cnn Qt Core & Network
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes