This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: stl_bvector.h, line 401: error: typename may only be used within a template
- From: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>
- To: Martijn Ras <ras at holmes dot nl>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 3 Mar 2003 17:21:41 +0000
- Subject: Re: stl_bvector.h, line 401: error: typename may only be used within a template
- References: <3E63923D.4080807@holmes.nl>
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