Signed-off-by: Jesse Vincent <jesse@keyboard.io>
pull/692/head
Jesse Vincent 5 years ago
parent bea3826033
commit ed399679e9
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -68,12 +68,11 @@ class MatrixAddr {
template<typename MatrixAddr__>
explicit
constexpr MatrixAddr(const MatrixAddr__ &other)
: MatrixAddr(other.row(), other.col())
{
static_assert(MatrixAddr__::rows <= ThisType::rows,
"Matrix type conversion failed. Source type must not have greater row size than target type");
static_assert(MatrixAddr__::cols <= ThisType::cols,
"Matrix type conversion failed. Source type must not have greater col size than target type");
: MatrixAddr(other.row(), other.col()) {
static_assert(MatrixAddr__::rows <= ThisType::rows,
"Matrix type conversion failed. Source type must not have greater row size than target type");
static_assert(MatrixAddr__::cols <= ThisType::cols,
"Matrix type conversion failed. Source type must not have greater col size than target type");
}
constexpr uint8_t row() const {

Loading…
Cancel
Save