Mixins and __gc
-
I hope this is my last MC++ newbie question for a while... ( btw, thanks to previous answers I've got my cross platform, C++ & MC++ agnostic threading code running. Thanks! :) ) Is there any way to use templates for subclassing with managed classes ? As in;
template<typename T> struct foo { ... }; ... __gc class bar : public foo<bar> { ... };
..which doesn't compile. Adding a __gc to the foo-template doesn't help either. So, is there any way to do this, at all ? cheers -=jarl=- -
I hope this is my last MC++ newbie question for a while... ( btw, thanks to previous answers I've got my cross platform, C++ & MC++ agnostic threading code running. Thanks! :) ) Is there any way to use templates for subclassing with managed classes ? As in;
template<typename T> struct foo { ... }; ... __gc class bar : public foo<bar> { ... };
..which doesn't compile. Adding a __gc to the foo-template doesn't help either. So, is there any way to do this, at all ? cheers -=jarl=--=jarl=- wrote: I hope this is my last MC++ newbie question for a while... I hope so too ;P The Word version of the MC++ reference is available for download and it contains the dos and donts. To your question, MC++ cannot derive from standard C++ and vice versa. A pointer of either can, however, be contained. MC++ has no support for template (a lie actually :(( !!!) Best regards, Paul. Jesus Christ is LOVE! Please tell somebody.
-
-=jarl=- wrote: I hope this is my last MC++ newbie question for a while... I hope so too ;P The Word version of the MC++ reference is available for download and it contains the dos and donts. To your question, MC++ cannot derive from standard C++ and vice versa. A pointer of either can, however, be contained. MC++ has no support for template (a lie actually :(( !!!) Best regards, Paul. Jesus Christ is LOVE! Please tell somebody.