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; }