Vladimir Marek <Vladimir.Marek at Oracle.COM> writes: > > const char* > string::c_str(void) { > char buf[100]; > > strcpy (buf, this->internal_representation); > return buf; > } Isn't that undefined behavior, returning a pointer to a (non-static) local variable? d