Andre Poenitz <[EMAIL PROTECTED]> writes: | On Thu, Apr 04, 2002 at 02:09:44PM +0200, Lars Gullik Bjønnes wrote: >> | std::ifstream is(bb.c_str()); >> then this would be: >> std::istringstream is(bb); > | Aehm... does this work with lyxstrings, too? I seem to remember people | adding .c_str() to my code in similar circumstances...
yes a c_str would be needed to accommodate lyxstring... another reason to ditch it... Note that the problems will lyxstring will only get bigger.... by clinging to it we introduce a lot of ineffencies (conversion between lyxstring->char*->std::string and back... with all the extra allocations that result in), also because of these conversions strings cannot give any meaning to '\0' (and we might want to do that... think TeX charset...). The worst part IMHO is that by not using std::string it is hard or impossible to use other libraries that use std::string in its interfaces (but the c_str() solution might still work...). IMHO lystring is just looking less and less favorable. -- Lgb