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



On Sun, 2004-03-21 at 19:56, Martin Schulze wrote:
> Am 2004.03.20 17:38 schrieb(en) Murray Cumming:
> > On Sat, 2004-03-20 at 14:30, Martin Schulze wrote:
> > > > My SUN Forte C++ 5.3 and 5.4 still get stuck on
> > > >
> > > > CC -DHAVE_CONFIG_H -I.. -I.. -g -c signal.cc  -KPIC -DPIC -o
> > > > .libs/signal.o
> > > > "../sigc++/functors/functor_trait.h", line 48: Error: Function
> > > > templates
> > > > may not  have default template parameters.
> > >
> > > This is utter nonsense.
> > 
> > Well, it does look like an unusual technique.
> 
> We are using it in several places. It allows us to distinguish
> between classes that do or don't inherit from functor_base /  
> adaptor_base / lambda_base transparently.

Hmm, I wonder if other uses succeed. Can you hack up a quick test case?

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




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