Boost logo

Boost :

From: Andreas Huber (ah2003_at_[hidden])
Date: 2003-03-22 15:05:51


Hi Aleksey,

I've stumbled over ETI again. Browsing through MPL I have found different
ways to circumvent it. In my case the following workaround seems
to be sufficient:

template< class State >
struct get_context_ptr_type
{
  typedef typename State::context_ptr_type type;
};

template<>
struct get_context_ptr_type< int >
{
  typedef int type;
};

I.e. by simply specializing a given metafunction with int. How do you decide
when to use which workaround? Have you established rules or do you simply
work your way through them until one works?

Thanks,

Andreas


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