Boost logo

Boost :

From: Jason Shirk (jasonsh_at_[hidden])
Date: 2004-12-09 15:53:48


> From: Arkadiy Vertleyb [mailto:vertleyb_at_[hidden]]
> Sent: Wednesday, December 08, 2004 1:16 PM
> Subject: Re: Re: Re: Re: typeof integrated
>
> "Peder Holt" <peder.holt_at_[hidden]> wrote
>
> > Then again, the following compiles with VC7.1, so maybe there is
hope
> > after all :)
>
> Wow...
>
> The reason it compiles is that you are using "class" where I used
> "typename". The following does not work:
>
> template<typename A0>
> void deduce_container(*typename* std::_Tree<A0>::iterator)
> {
> std::cout << "map" << "\n";
> }
>
> I don't think this is a legal standard usage, though... Probably a
> Microsoft - specific "feature"... Any comments from language experts?
> Should the following work according to the Standard?
>

This is definitely a compiler bug, not a feature.

--
Jason Shirk
VC++ Compiler Team

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk