From cab1eb9ceea41e9e905c1ba3c078cdced7aae664 Mon Sep 17 00:00:00 2001 From: Povilas Kanapickas Date: Sun, 25 May 2025 01:57:35 -0400 Subject: [PATCH] chore: arch: Derive XThread from std::exception This is needed because by convention exceptions must derive from at least std::exception. ported from: https://github.com/input-leap/input-leap/pull/1544/commits/22aec16dc7ef360869b8e3db800f9df04519a9eb ported-by sithlord48 --- src/lib/arch/XArch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/arch/XArch.h b/src/lib/arch/XArch.h index 81be48dcb..da2feaa74 100644 --- a/src/lib/arch/XArch.h +++ b/src/lib/arch/XArch.h @@ -19,7 +19,7 @@ Exceptions derived from this class are used by the multithreading library to perform stack unwinding when a thread terminates. These exceptions must always be rethrown by clients when caught. */ -class XThread +class XThread : public std::exception { };