To be more specific, even though I'm passing classa by reference, I'm not altering any of its member variables, I'm only calling several member functions contained in classa.
Hm, ok. Didn't know if this practice of passing by reference through multiple functions was dangerous or not and errors like this were common. If there's nothing that stands out as being wrong then maybe it's something else in the code.