-
January 23rd, 2011, 09:24 AM
#1
Distinguish managed from native types as template parameters during compiletime
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|