From e65ade256dd852fd16ffc97b1c89d4d902054630 Mon Sep 17 00:00:00 2001 From: Thomas Debrunner Date: Mon, 26 Feb 2024 15:40:40 +0100 Subject: [PATCH] message_set: mark exception constructor as noexcept --- include/mav/MessageSet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mav/MessageSet.h b/include/mav/MessageSet.h index a989314..99499c7 100644 --- a/include/mav/MessageSet.h +++ b/include/mav/MessageSet.h @@ -59,11 +59,11 @@ namespace mav { class ParseError : public std::runtime_error { public: - explicit ParseError(const char* message) + explicit ParseError(const char* message) noexcept : std::runtime_error(std::string(message)) {} - explicit ParseError(const std::string& message) + explicit ParseError(const std::string& message) noexcept : std::runtime_error(message) {} };