[haiku] Re: BList instantiate incomplete types

  • From: Ryan Leavengood <leavengood@xxxxxxxxx>
  • To: Haiku ML <haiku@xxxxxxxxxxxxx>
  • Date: Wed, 29 May 2013 12:50:27 -0400

On Wed, May 29, 2013 at 12:43 AM, Brian Hague <alphaseinor@xxxxxxxxx> wrote:
>
> is there any way to instantiate a BList template without declaring a type?

I'm pretty sure BList doesn't use templates, but just void pointers:

http://cgit.haiku-os.org/haiku/tree/headers/os/support/List.h

Haiku has a BObjectList from OpenTracker which extends BList and uses templates:

http://cgit.haiku-os.org/haiku/tree/headers/os/support/ObjectList.h

--
Regards,
Ryan

Other related posts: