Re: templates and managed code

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



template< int x >
class X {} ; // just fine

template< int y >
__gc classY{} ; //error C3151 '__gc' can't be applied to a template

What do you mean by 'templates have always been supported' if the simple
code above generates an error specifically saying you can't use '__gc' with
a template? [ I'm using the 2003 pro version of VC++.NET]

I guess I don't know what a CLR type is... : )


"Ronald Laeremans [MSFT]" <ronaldl@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23$Nmx6gzFHA.916@xxxxxxxxxxxxxxxxxxxxxxx
> Peter Oliphant wrote:
>> Is there any plan to support templates with managed code in the (near)
>> future? For instance, VS.NET 2005... : )
>
> Templates have always (i.e. from the VS 2002 / 7.0 version) been supported
> in managed code.
>
> Templates on CLR types are supported starting with the VS 2005 / 8.0
> versions.
>
> Ronald Laeremans
> Visual C++ team


.



Relevant Pages

  • Re: Template for web visitors?
    ... I think it maybe hard to get a template which include all those features ... but there does exists many existing ASP.NET starter kits ... templates which provide most features you mentioed. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Getting added to the new documents types
    ... on your templates, you can add macros to the templates. ... Microsoft Online Community Support ... nature are best handled working with a dedicated Microsoft Support Engineer ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: Hiding Documents from Templates
    ... support I am stunned that Word will not work with shared normal.dot. ... Word MVP web site http://word.mvps.org ... the User Documents folder, the User Templates folder and the Word ...
    (microsoft.public.word.docmanagement)
  • Re: Is the Professional Look Really Better?
    ... > It's just not worth it to me to try and support such people. ... > sniped that I can't know who is a unique visitor. ... templates are a popular SERP and tons of people are looking for them. ... favour of the advice of webmasters, does that mean you'll take my advice ...
    (microsoft.public.frontpage.client)
  • Re: Hiding Documents from Templates
    ... Word MVP FAQ site: http://word.mvps.org ... Word MVP web site http://word.mvps.org ... such restrictions are only in place to save the support staff from ... the User Templates folder and the ...
    (microsoft.public.word.docmanagement)