rombust
01-28-2009, 08:24 PM
I have templated:
CL_Sizex to give: CL_Size (int) ,CL_Sized (double), CL_Sizef (float)
CL_Rectx to give: CL_Rect (int) ,CL_Rectd (double), CL_Rectf (float)
At the moment, it is typedef’d as follows:
Typedef CL_Sizex<float> CL_Sizef
I was thinking of changing this to:
Class CL_Sizef : public(CL_Sizex<float>)
{
(use the using keyword to obtain the constructors from CL_Sizex<float>
}
This should allow you to do the following:
Class CL_Sizef; - to declare the size without including the header
Any thoughts?
CL_Sizex to give: CL_Size (int) ,CL_Sized (double), CL_Sizef (float)
CL_Rectx to give: CL_Rect (int) ,CL_Rectd (double), CL_Rectf (float)
At the moment, it is typedef’d as follows:
Typedef CL_Sizex<float> CL_Sizef
I was thinking of changing this to:
Class CL_Sizef : public(CL_Sizex<float>)
{
(use the using keyword to obtain the constructors from CL_Sizex<float>
}
This should allow you to do the following:
Class CL_Sizef; - to declare the size without including the header
Any thoughts?