mirror of
https://github.com/Retropex/dolphin.git
synced 2025-05-13 03:40:44 +02:00
InputCommon: Make RawValue constructors constexpr.
This commit is contained in:
parent
70485472b1
commit
24a1fe32f1
@ -103,8 +103,8 @@ struct ThreePointCalibration
|
|||||||
template <typename T, size_t Bits>
|
template <typename T, size_t Bits>
|
||||||
struct RawValue
|
struct RawValue
|
||||||
{
|
{
|
||||||
RawValue() = default;
|
constexpr RawValue() = default;
|
||||||
explicit RawValue(const T& value_) : value{value_} {}
|
constexpr explicit RawValue(const T& value_) : value{value_} {}
|
||||||
|
|
||||||
static constexpr size_t BITS_OF_PRECISION = Bits;
|
static constexpr size_t BITS_OF_PRECISION = Bits;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user