https://bugs.kde.org/show_bug.cgi?id=403394

            Bug ID: 403394
           Summary: Warn about missed override of helper functions for
                    QException descendants
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: unassigned-b...@kde.org
          Reporter: dism...@gmail.com
                CC: smart...@kde.org
  Target Milestone: ---

According to documentation for the QException class, Qt Concurrent supports
throwing and catching exceptions across thread boundaries, provided that the
exception inherit from QException and implement two helper functions.

class MyException : public QException
{
public:
    void raise() const override { throw *this; }
    MyException *clone() const override { return new MyException(*this); }
};

If such functions are not overridden in descendants, we can get unexpected
behavior for exception thrown from a thread.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to