[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-cxx-dev
Subject:    Re: CXX-DEV: Member template class support?
From:       Dennis Handly <dhandly () cup ! hp ! com>
Date:       2000-12-13 0:11:51
[Download RAW message or body]

>Could someone pls suggest another work-around that does not involve changes
>in the "allocator" class?

Workaround it the same way as before:

template<class T, class ACTR=allocator<T> > 
class Vector {
public:
#ifdef WORK
  typedef typename allocator<ACTR>::template rebind<T>::other atype;
#else
  typedef typename _Alloc_traits<T,ACTR>::_Rebind_type::other atype;
#endif
  Vector() {
    atype a;
    T *t=a.allocate();
  }
};

>Why is that?
MST

Getting confused with those extra templates?  Please contact the Response
Center.
 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE cxx-dev
 _________________________________________________________________

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic