Hi Sukender,

concerning Variant,
for simple types

something like
http://trac.rtmpd.com/browser/trunk/sources/common/src/utils/misc/variant.cpp
http://trac.rtmpd.com/browser/trunk/sources/common/include/utils/misc/variant.h
http://trac.rtmpd.com/browser/trunk/sources/common/include/utils/misc/variantmap.h

might go,

but it looks like you would like more, then  discussion here
http://stackoverflow.com/questions/5319216/implementing-a-variant-class
( esp use of boost variant instead of boost any ) might be of some use.

My concern though is about speed of dynamic cast ( which is slow ), so maybe
sort of custom rtti ( see example
http://citeseerx.ist.psu.edu/viewdoc/download;jsessionid=C4231214774C16E32EA2B2C879DAACB3?doi=10.1.1.164.1009&rep=rep1&type=pdf
) could be used here...

but if custom rtti
here comes to mind http://www.rcs.hu/Articles/RTTI_Part1.htm
http://www.rcs.hu/Articles/RTTI_Part2.htm and then both osgReflection (now
osgIntrospection ) and  Wang Rui's reflection wrappers  should be considered
as they already have some functionality.

so simple question of variant ( and degree of it's complexity and it's speed
and then maybe serialization of very special variant ) causes a lot of
issues to surface.


Regards
Sergey
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to