[haiku-development] Re: GCC 2.95 and the STL
- From: Rene Gollent <anevilyak@xxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Sun, 14 Mar 2010 08:59:32 -0500
On Sun, Mar 14, 2010 at 8:30 AM, Brecht Machiels <brecht@xxxxxxxxxxx> wrote:
> Are there any replacements for the STL list, vector and map classes? IIRC,
> other filesystems in the Haiku tree use custom container classes. I suppose I
> can use BString instead of std::string.
If you're intending to write this solely as a userland filesystem then
using BString is fine. If you want it to be able to live in kernel
though, then nothing in libbe is allowed as a kernel add-on is not
allowed to link to libraries other than the kernel itself. This is
also another reason why the STL is out (kernel-side), as that requires
libstdc++.
>
> I'm also making use of RTTI, so that would also be a problem for a
> kernel-space FS.
Actually no, RTTI is allowed. It's exceptions that aren't.
>
> As assignfs is only a virtual filesystem, and not one you would boot from,
> maybe it is not a problem that it is only available as a userland FS. Are
> there other disadvantages? Performance perhaps?
>
Performance is the biggest issue indeed, as the filesystem has to
round-trip through the userlandfs server, the kernel and back for
almost all operations..
Regards,
Rene
Other related posts: