help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stl_alloc substitution


From: address@hidden
Subject: Re: stl_alloc substitution
Date: Sat, 7 Jun 2008 04:24:35 -0700 (PDT)
User-agent: G2/1.0

On 7 Jun., 13:22, "oliverp...@googlemail.com"
<oliverp...@googlemail.com> wrote:
> Hello everybody,
>
> I am trying to port some old gcc2 code to gcc-Version 4.0.3 (Ubuntu
> 4.0.3-1ubuntu5).
> When I try to "make" the compiler complains that
>
> _Alloc_traitsĀ« is not a template.
>
> After searching for a while i came to the conclusion that this
> template is not more in gcc4,
> the stl_alloc is obsolete and removed.
> So how can I substitute templates such as
> ==========================================
>   template<typename _Tp, bool __threads, int __inst>
>     struct _Alloc_traits<_Tp, MyAlloc_template<__threads, __inst> >
>     {
>       static const bool _S_instanceless = true;
>       typedef __simple_alloc<_Tp, MyAlloc_template<__threads, __inst>
>
>         _Alloc_type;
>       typedef __allocator<_Tp, MyAlloc_template<__threads, __inst> >
> allocator_type;
>     };
> ==========================================
> with gcc4 compatible code?
> Is there a new stl template library?
> Thanx in advance

Btw the code fragment is from this open source command line program
(linux source)
http://www.mcb.mcgill.ca/~blanchem/FootPrinter2.1.tar.gz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]