Original Post
I have a problem with templates. Please check this code:
template<typename _TPtr, typename _TObj>
struct test_t
{
_TPtr *ptr;
_TObj obj;
};
typedef test_t<two_t, int> one_t;
typedef test_t<int, one_t> two_t;
I obviously need to declare 'two_t' before 'one_t', but 'one_t' also needs 'two_t' declared before. Code for this simple test-case can be easily written without templates, but how to make this WITH templates? I would be grateful for any help.