Hi, I know that templates are precompile commands but still I was wondering if there is a way to use template class variables ( pointers or something ) in function calls without having to provide the template arguments?
Somenthing like this:
Code:template< int S > class foo { protected: int size = S; ... }; class bar { protected: foo< 20 > abc; public: void Set_Data( foo* def ) { if( abc.size < def->size ) { do_something_... } } foo* Get_Data() { return &abc; } ... };