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

Clarify/improve exception handling with QFuture

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.8.1
    • Core: Threads
    • None
    • All

      `QFuture` seems to struggle a bit with exceptions that do not derive from `QException` (documented, is this still necessary, technically?) and especially nested exceptions.

      I'm not aware how relevant the latter is, just at the moment `std::throw_with_nested` and `std::rethrow_if_nested` are not really usable due to the exception cloning I assume. Maybe this should be documented or fixed eventually, examples attached.

        1. main.cpp
          0.8 kB
          Sven Pauli
        2. test.cpp
          0.7 kB
          Sven Pauli
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            cnn Qt Core & Network
            kamajii Sven Pauli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes