Hi all,

I used a template class to hold various types of data, for example:

Code:
struct Structure1
{
int a, b;
}

struct Structure2
{
char c, d;
}


template <class mytype> class CTheClass
{
 ... 

// This structure is different for every instance of this class because "mytype" can be Structure1 or Structure2
typedef struct m_Class_Structure
	{
		vector <mytype> points;		
	} m_Class_Structure;  
}

It was great and it saved me a lot of code.

But now... how I detect if "mytype" is Structure1 or Structure2 ?

I need to write code to handle specifically Structure1 and Structure2, and the code isn't the same for both.

Any idea please?