Boost logo

Boost Users :

From: Geoffrey Irving (irving_at_[hidden])
Date: 2005-10-05 16:12:40


Hello,

Is it possible to get boost::operator like functionality for general methods?
In other words, I'd like to be able to do the following:

template<...> struct complete : public ...
{
    void f(){a();}
    void g();
};

struct C : public complete<...>
{
    void a();
    void b(){g();}
};

The resulting class C would have methods a,b,g,f. Here C::b refers to
the complete::g and complete::f refers to C::a, so the dependencies are
circular. It seems like the boost::operators setup can handle this kind
of circular dependency, but I'm not how to do it for methods.

Thanks,
Geoffrey


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net