This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stl_bvector.h, line 401: error: typename may only be used within a template


On Mon, Mar 03, 2003 at 05:34:53PM +0000, Martijn Ras wrote:

> I ran into the following error:
> 
> > "/usr/include/g++-3/stl_bvector.h", line 401: error: typename may \
>   only be used
> >           within a template
> >     typedef typename _Base::allocator_type allocator_type;

Please see FAQ 4.4
http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#4_4_interface

The g++-3 headers are part of libstdc++-v2, not v3, and are non-standard
in far more ways than misusing typename. This list is only for the v3
library, the headers for which live in a directory called g++-v3 (which
is a bit confusing) or for later versions, c++/3.x

jon

-- 
Let's remember that, fun though technology may be, it's not the important stuff.
	- James Dennet


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]