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

| Now that Lars decided to use string::clear() (which dec cxx does not
| have), I am forced to compile lyxstring with dec cxx. However, it
| breaks with errors like:
| 
| cxx: Error: ../../../lyx-devel/src/insets/figinset.C, line 1226: more than
|           one operator "+" matches these operands:
|             function "operator+(const lyxstring &, lyxstring::value_type)"
|             function "lyxstring::operator+(int)"
|             operand types are: string + char
|         file += cmd + ' ';
| --------------------^
| 
| How can I avoid this?

Hmm, I would think that operator+(const lyxstring &,
lyxstring::value_type) should fit best and be selected...

The fix is to remove the three private operators from lyxstring.h.
These have been used to track down bad uses of lyxstring. I have also
seen that these can cause problems on some systems.

I am not sure if we should ifdef them or just remove them.

        Lgb

Reply via email to