Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions v5/include/libhal-util/bit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ class bit_value
* @return The represented value as type U.
*/
template<std::integral U>
[[nodiscard]] constexpr auto to()
[[nodiscard]] constexpr auto to() const
{
return static_cast<U>(m_value);
}
Expand All @@ -631,7 +631,7 @@ class bit_value
*
* @return The represented value.
*/
[[nodiscard]] constexpr T get()
[[nodiscard]] constexpr T get() const
{
return m_value;
}
Expand Down
Loading