Re: [sigc] libsigc++ & Forte: template operator()



On Sat, 2004-03-20 at 15:03, Martin Schulze wrote:
> Marray, did you check whether:
[snip]
>     thing_./*template */operator()<int>(1, 2);
>   }
> 
> (with the template keyword commented out) compiles with the FORTE?
> I don't remember anyone actually confirming this. (Attachment  
> test_template_keyword1.cc)

No, I forgot to check that. I see now that it fails:

bash-2.03$ CC template_operator_simple.cc
"template_operator_simple.cc", line 20: Error: Badly formed expression.
1 Error(s) detected.

It does work if I rename operator() to somemethod(). I suspect that that
is fixed in Damien's Forte C++ 5.5 (I have 5.4)

> Also we should check whether the newly added template keywords cause
> any troubles with the FORTE before doing a new release. I'm attaching
> test_template_keyword2.cc for this. test_template_keyword3.cc has the
> template keyword commented out.

Both compile without problems.

-- 
Murray Cumming
www.murrayc.com
murrayc murrayc com




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