E2522 Non-const function 'function' called for const object (C++)
Go Up to Compiler Errors And Warnings (C++) Index
Data type mismatch resulting in an erroneous function call. The object of the call (a non-const function) should be a const object.