Hi,

I have written some template classes using C++/CLI. These classes are managed classes (ref class). Now I want to specialize a few of them for the case that one of the given template parameters is not a native type but a managed type. But how can I do this?

Please consider: I am not talking of generics (like: generic<typename T> ref class{...}; ) but of C++ templates (like: template<typename T> ref class{...}; ). And I want to specialize such a template depending on whether for T is given a managed type or a native type.

Does anybody know the trick (perhaps a distinct metatemplate)?

Many thank in advance!

Physicus.