I've checked the parameters as they passed, but none of them change up to my call to insert on line 8. I don't really understand why this is happening. My temporary solution is to replace line 18 with: {this->expand(xy+1, xy, filler);}
But I would like to learn why my code isn't working as intended and hopefully fix it.
Hah! It solved the issue! I should have known better than to assume insert_column() wouldn't affect the number of rows. I think I'm going to change how m_columns is changed, so it is dependent on the new matrix size. That line also obfuscated another problem when I was testing insert_column().
Was the issue because insert adds the elements one space before the position? And that's why the condition had to be <=?