I'm getting an error saying:
error: passing `const model::container::Item' as `this' argument of `void model::container::Item::get_fields()' discards qualifiers
I'm getting the message for each of the getters in my class which are declared like this
const int& division()const{
get_fields();
return division_;
}
I'm assuming I'm getting this error because my get_fields() method has the potential to modify division_, but I have division defined as mutable so I would think it should be fine. What am I missing?