From 86595ac78ed52969dadf649a3e96eab24d2002e1 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Thu, 4 Jan 2024 12:09:13 +0700 Subject: [PATCH] fix: modify `Error::msg_ptr` to be mutable by removing `const` specifier --- include/errors/error.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/errors/error.hpp b/include/errors/error.hpp index 3638873..9cfa8b3 100644 --- a/include/errors/error.hpp +++ b/include/errors/error.hpp @@ -17,7 +17,7 @@ namespace errors { */ class [[nodiscard]] Error { private: - const std::shared_ptr msg_ptr; + std::shared_ptr msg_ptr; Error(const std::shared_ptr& msg_ptr);