toString why not const

Tom tom at
Fri Jan 21 13:02:56 PST 2011

Hi, I'm trying to override Object's toString. I've noted it isn't a 
const method, namely:

string toString() const;

This cause me troubles when using it on a const reference.

Shouldn't it be const?


More information about the Digitalmars-d-learn mailing list