Re: Re: [sigc] libsigc++ 1.9.13 fails on Solaris 9 sparc



Am 2004.03.25 18:36 schrieb(en) Murray Cumming:
On Mon, 2004-03-22 at 20:18, martin-ml hippogriff de wrote:
> Am 22.03.2004 um 14:12 Uhr haben Sie geschrieben:
> > On Mon, 2004-03-22 at 13:56, Damien Carbery wrote:
> > > Worse.
> > > Line is now:
> > >    thing_.template operator()<int>(1, 2);
> > >
> > > line 20: Error: A class template name was expected instead of
> operator.
> > > line 20: Error: Badly formed expression.
> > >
> > > with:
> > >   thing_.T operator()<int>(1, 2);
> > > line 20: Error: operator() is not defined.
> > > line 20: Error: Badly formed expression.
> >
> > Martin, do you think there is any way to keep the operator() in
the
> API,
> > but use a normal callit() method internally?
>
> Well, there doesn't seem to be a way around it.

I'm not sure if that means "Yes, we must do that", or "No, that won't
work". The attached workaround test works with SUN Forte C+ 5.4.

Yes, we must do that unless somebody magically comes up with a
different solution. Obviously nobody did. I don't really like the
idea because it will almost double the code size of the adaptors
but there is no way around it.

Unless
you are doing this yourself, I will try to implement this.

I will work on this tomorrow on the train and will commit to cvs
late in the evening. I'll drop a note if I couldn't finish.

Regards,

 Martin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]