InputCommon: Make RawValue constructors constexpr.

This commit is contained in:
Admiral H. Curtiss 2022-09-24 00:48:26 +02:00
parent 70485472b1
commit 24a1fe32f1
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB

View file

@ -103,8 +103,8 @@ struct ThreePointCalibration
template <typename T, size_t Bits>
struct RawValue
{
RawValue() = default;
explicit RawValue(const T& value_) : value{value_} {}
constexpr RawValue() = default;
constexpr explicit RawValue(const T& value_) : value{value_} {}
static constexpr size_t BITS_OF_PRECISION = Bits;