On Sat, Jul 01, 2000 at 10:30:37PM +0200, Lars Gullik Bjønnes wrote:
> Jose Abilio Oliveira Matos <[EMAIL PROTECTED]> writes:
> 
> | On Sat, Jul 01, 2000 at 02:16:03PM -0300, Garst R. Reese wrote:
> | > insetinclude.C 498: passing 'const string' as 'this' argument of 'class
> | > lyxtring & lyxstring::operator = (const char *)' discards qualifiers.
> | > Jose' ?
> | 
> |   I saw the problem, I didn't know an answer. I also know it will not cause
> | any trouble.
> 
> Wrong.
> You are trying to assign to a const string.
> (AFAIK this is not even gurarantied to work)

  Yep, now I know that. I didn't realize that was the problem, the problem 
I expected was another, even if it was weird to work...
 
> |   I decided it was warmless, also what would you expect from someone codng with
> | one hand, a full solution? ;)
> 
> A solution without compile errors?
> (the solution is to either make the method non const or the variable
> mutable)

  The solution Dekel used was to make it mutable. This is my option also...
 
> |   I tried to see the other examples that don't use stringstreams, but I didn't
> | came with a decent solution... Someone help me here, please. :) 
> 
> I will not have time to look at this before monday.

  Ok, thanks.
 
>         Lgb

-- 
José

Reply via email to