Re: templates and managed code
- From: "Peter Oliphant" <poliphant@xxxxxxxxxxxxxxxx>
- Date: Tue, 11 Oct 2005 10:12:45 -0700
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
.
- Follow-Ups:
- Re: templates and managed code
- From: Nishant Sivakumar
- Re: templates and managed code
- From: Arnaud Debaene
- Re: templates and managed code
- References:
- templates and managed code
- From: Peter Oliphant
- Re: templates and managed code
- From: Ronald Laeremans [MSFT]
- templates and managed code
- Prev by Date: Re: Problem only in release version!
- Next by Date: Re: templates and managed code
- Previous by thread: Re: templates and managed code
- Next by thread: Re: templates and managed code
- Index(es):
Relevant Pages
|