From 939ad35dd710c13d4d3ee5913dc77838e46d20f7 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Mon, 25 Oct 2021 19:55:04 +0200 Subject: [PATCH] nvidia/cv: Publicly inherit from std::runtime_error It wasn't possible to cast these exceptions to the underlying type, so they were treated as unknown exceptions. --- source/nvidia/cv/nvidia-cv.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/nvidia/cv/nvidia-cv.hpp b/source/nvidia/cv/nvidia-cv.hpp index 8cbd198..84f6c99 100644 --- a/source/nvidia/cv/nvidia-cv.hpp +++ b/source/nvidia/cv/nvidia-cv.hpp @@ -288,7 +288,7 @@ namespace streamfx::nvidia::cv { static std::shared_ptr<::streamfx::nvidia::cv::cv> get(); }; - class exception : std::runtime_error { + class exception : public std::runtime_error { result _code; public: