Boost logo

Boost :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2004-06-23 10:17:41


On Tuesday 22 June 2004 4:31 pm, Michael Glassford wrote:
> Janusz Piwowarski wrote:
>
> [snip previous original & replies]
>
> > I found source of this problem - latest changes in
> > boost/function/function_base.hpp. Compiler try to instatiate template
> > from line 533:
> >
> > template<typename Functor>
> > BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor, bool)
> > operator==(const function_base& f, Functor g)
> > {
> > if (const Functor* fp = f.template target<Functor>())
> > return function_equal(*fp, g);
> > else return false;
> > }
> >
> > Is this intentional?
>
> I'm not the right person to answer this, but...

I should be the right person... it looks like a GCC bug.

> > With named enum library compiles successful.
>
> I'll gladly change the enum definition to be named.

You shouldn't need to do this; it'll be fixed or worked around in Function.

        Doug


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk