|
|
@ -47,7 +47,7 @@ class MatrixAddr {
|
|
|
|
constexpr MatrixAddr(uint8_t row, uint8_t col)
|
|
|
|
constexpr MatrixAddr(uint8_t row, uint8_t col)
|
|
|
|
: offset_(row * cols + col) {}
|
|
|
|
: offset_(row * cols + col) {}
|
|
|
|
|
|
|
|
|
|
|
|
explicit constexpr MatrixAddr(uint8_t offset)
|
|
|
|
constexpr MatrixAddr(uint8_t offset)
|
|
|
|
: offset_(offset) {}
|
|
|
|
: offset_(offset) {}
|
|
|
|
|
|
|
|
|
|
|
|
// Rely on the default copy and move constructor.
|
|
|
|
// Rely on the default copy and move constructor.
|
|
|
@ -57,8 +57,8 @@ class MatrixAddr {
|
|
|
|
// ridiculously bad assembler code for each copy construction,
|
|
|
|
// ridiculously bad assembler code for each copy construction,
|
|
|
|
// that would bloat the default firmware by 1K of PROGMEM!
|
|
|
|
// that would bloat the default firmware by 1K of PROGMEM!
|
|
|
|
//
|
|
|
|
//
|
|
|
|
explicit constexpr MatrixAddr(const ThisType &other) = default;
|
|
|
|
constexpr MatrixAddr(const ThisType &other) = default;
|
|
|
|
explicit constexpr MatrixAddr(ThisType &&other) = default;
|
|
|
|
constexpr MatrixAddr(ThisType &&other) = default;
|
|
|
|
//constexpr MatrixAddr(const ThisType &other) : offset_(other.offset_) {}
|
|
|
|
//constexpr MatrixAddr(const ThisType &other) : offset_(other.offset_) {}
|
|
|
|
//constexpr MatrixAddr(ThisType &&other) : offset_(other.offset_) {}
|
|
|
|
//constexpr MatrixAddr(ThisType &&other) : offset_(other.offset_) {}
|
|
|
|
|
|
|
|
|
|
|
|