Reading the code I realized it was modifying the instance internally, which isn't what one would expect from a const method.