79225289

Date: 2024-11-26 04:07:07
Score: 0.5
Natty:
Report link

Not directly applicable to OP's problem, but I had an error with the same message where I was trying to push to a vector class member from inside a method marked as const. Neither the vector type nor the data I was passing to it had the const modified, which made it very confusing for me. Removing the const modifier from the function fixed the problem for me. (e.g. int MyClass::myFunc() const -> int MyClass::myFunc())

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Eric Pedley