I am coding a project and when I compile it I get the following error. src/bitmatrix.cpp: In function ‘Bitmatrix* Inverse(const Bitmatrix*)’: src/bitmatrix.cpp:353:23: error: passing ‘const Bitmatrix’ as ‘this’ argument discards qualifiers [-fpermissive] m->Swap_Rows(r, c); I have tried a few things to fix this but have been unsuccessful, if you all need the portion of code this pertains to I can post that up as well.
You have to share your code for us to be able to find the error. It looks like your function is not define right.