This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Circumventing __USE_MALLOC and templatized containers
- From: Carlo Wood <carlo at alinoe dot com>
- To: Wolfgang Bangerth <wolfgang dot bangerth at iwr dot uni-heidelberg dot de>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Sat, 24 Nov 2001 17:38:20 +0100
- Subject: Re: Circumventing __USE_MALLOC and templatized containers
- References: <Pine.SOL.4.10.10111231756420.18931-100000@eros>
On Fri, Nov 23, 2001 at 06:06:49PM +0100, Wolfgang Bangerth wrote:
> template <typename T>
> class my_vector : public std::vector<T, some_allocator>
> { };
>
> This is a bad idea, obviously. What then is the suggested way to have
This is how I've been doing it whenever I needed a templated
typedef. Why is it a bad idea?
--
Carlo Wood <carlo@alinoe.com>