| |
| | FAQ for g++ and libg++, plain text version [Revised 15 Jun 1998] |
 | | The installation instructions for g++ version 1 leave a lot to be desired, unfortunately, and I would recommend that, unless you have a special reason for needing the 1.x compiler, that C++ users use the latest g++-2.x version, as it is the version that is being actively maintained. |
 | | This is unsafe in g++ versions before 2.6.0, because the temporary String object may be deleted after its last use (the call to the conversion function), leaving the pointer pointing to garbage, so by the time func2 is called, it gets an invalid argument. |
 | | For now, the safe way to write such code is to give the temporary a name, which forces it to live until the end of the scope of the name. |
| www.faqs.org /faqs/g++-FAQ/plain (11054 words) |
|