Patrick Hartling wrote:
>> [snip]
>
To demonstrate some uses of this new attachment type, I have attached an
example program. The uses are fairly trivial, but I feel that they exhibit
the capabilities of the attachment type.
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.
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?
(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.)
Best regards
/Marcus, always on the quest for more generic stuff.
-------------------------------------------------------
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