From aa93135f718e0402abd8c4586279a9c35a520354 Mon Sep 17 00:00:00 2001 From: Khalil Estell Date: Sat, 30 May 2026 10:44:50 -0700 Subject: [PATCH] :bug: (patch) Make bit_value::get() and to() const --- v5/include/libhal-util/bit.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v5/include/libhal-util/bit.hpp b/v5/include/libhal-util/bit.hpp index 554f1ea..9ba8793 100644 --- a/v5/include/libhal-util/bit.hpp +++ b/v5/include/libhal-util/bit.hpp @@ -621,7 +621,7 @@ class bit_value * @return The represented value as type U. */ template - [[nodiscard]] constexpr auto to() + [[nodiscard]] constexpr auto to() const { return static_cast(m_value); } @@ -631,7 +631,7 @@ class bit_value * * @return The represented value. */ - [[nodiscard]] constexpr T get() + [[nodiscard]] constexpr T get() const { return m_value; }