mirror of
https://github.com/Kekun/primehack.git
synced 2024-06-02 20:17:41 -04: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 a new issue