typedef and pass variable

Mohsen Pahlevanzadeh mohsen@pahlevanzadeh.org
Mon Jul 9 07:27:00 GMT 2012


Dear all,
Suppose i have a func such as a following func:
////////////////////
template <class T>
Class *makeInstance(T *_class,Method _method,Class* _instance_class,ReturnType _returnType,Parameter1 parameter1,Parameter2 parameter2, Parameter3 parameter3, Parameter4 parameter4){
typedef MyCLass< &_class, ReturnType, Parameter1, Parameter2, Parameter3, Parameter4>  cbd;
};
/////////////////////////
In typedef line, i must pass class name as argumnent , how i do it?
When i put a real class name instead of _class my error is solved.

--Best Regards
Mohsen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20120709/653e8edd/attachment.sig>


More information about the Gcc-help mailing list