Hi Marcus,
On Thu, 2005-09-22 at 22:43 +0200, Marcus Lindblom wrote:
>
> Definitely neat! However, it would be very nice of one could store other
> types than strings (i.e. pointers to stuff, with more application data)
> rather than having to use lexical_cast.
I've been reluctant to allow something like that, as it is non-trivial
to make it work with multi-threading and pretty much impossible for
clustering. The void* Attachment is somewhat of a compromise in this
respect.
> Just having a simple base class with trivial copy-semantics and correct
> destruction (i.e. virtual dtor) would be nice. I was thinking of using
> this mainly to store shared_ptr/RefPtr or just a bunch of raw data
> (given that it's not overly large, similar to what you would put into a
> map).
>
> Would it be possible to get some extendable class called AttributeValue
> and store pointers to that in the map instead?
MT and clustering depend on a little more than copy and dtor. It's
probably possible to tweak MT to get somewhat usable, but cluster just
won't work.
I've tried to avoid allowing stuff that people would depend on and that
just doesn't work with cluster, because at some point they would then
come to us and ask how to do it. ;)
> (Seriously, I've been thinking of doing something like this, since it
> would indeed be useful for us in some places, but so far the current
> const char*/void* interface has have me stumped.)
?
Yours
Dirk
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users