(this is one reason the string class having an implicit cast to char* is bad; lots of things compile but don't work, causing bugs like this)