Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| How would you do it?

First of all I do not want to make it too "nice", so I'll go for the
ugly version.

#ifdef USE_INCLUDED_STRING
#define STRINGCONV(STR) STR.c_str()
#else
#define STRINGCONV(STR) STR
#endif

should cover most of it.

std::string a;
lyxstring b;

b = STRINGCONV(a);

Use of this will make the std::string version smaller and faster as
well, only the lyxstring version will have to do the c_str()
conversions. (all .str().c_str() stuff could go.)

-- 
        Lgb

Reply via email to