I am trying to understand templates better
I have a template class that starts like this in my .h:
template <class DOC_POLICY, class PRINT_POLICY, class UNDO_POLICY>
class CP_EXPORT CP_Application : public CP_Application_Imp
Now I need to initialize so in my .cpp so I do:
CPLAT::CP_DocumentPolicy_None * d = new CPLAT::CP_DocumentPolicy_None();
CPLAT::CP_PrintPolicy_None * p = new CPLAT::CP_PrintPolicy_None();
CPLAT::CP_UndoPolicy_None * u = new CPLAT::CP_UndoPolicy_None();
CPLAT::CP_Application::Init(d, p, u);
I get an error on CPLAT::CP_Application::Init(d, p, u); that states:
error: 'template class CPLAT::CP_Application' used without template parameters
How does one pass template parameters?