2009/2/10 Matthias Vallentin
On Tue, Feb 10, 2009 at 09:34:20PM +0100, Matthieu Brucher wrote:
Would it be possible to derive from a class that has this function? This way, the mother class is template, the template argument being the child class (the curiously recursive template pattern). Then, in the mother class, you can define f() and call i(). I don't know how i() would be exactly called, but you get the idea.
Could you substantiate your solution with a short example, I think I don't understand which direction you're heading. What I'm trying to accomplish and express in code is the following idea:
If you provide a function (i), you get functionality from the parent (f).
Matthias -- Matthias Vallentin vallentin@icsi.berkeley.edu http://matthias.vallentin.cc _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Something like (not the correct code though):
template<class Child>
struct MyfStruct
{
typename boost::enable_if