Skip to content

Commit

Permalink
Make conversion operator public
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wellbelove committed May 31, 2024
1 parent b6f67ac commit 0d1db08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/etl/byte.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,15 @@ namespace etl
{
}

private:

// Cast to a T
template <typename T>
operator T() const
{
return static_cast<T>(value);
}

private:

// The byte value
unsigned char value;
};
Expand Down

0 comments on commit 0d1db08

Please sign in to comment.