You should show Your sample. struct and template are not so easy to use, and another compilers can do not the same with templates. If You use typedef struct, it may help You to work with templates.
Genarally, if You have a Pointer to a structure (in template's Function too), You can allways find out all elements of this structure.
Generally speaking, a template class CANNOT know the details of its template members. I've seen code, however, (in the C/C++ User's Journal magazind) that would allow you to create a template class that required the template parameter to have certain functionality. It's somewhat tricky, but really good stuff - I heartily recommend the magazine for serious coders.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.