From David Callu, "After the mail of Emmanuel Roche to convert a void * in a known pointer (for example osg::Geode *), I has searched an elegant way to introduce this feature.
I just add ReinterpretCastConverter in the Reflector to convert void* in T* and T* in void*
files joint :
OpenSceneGraph/include/osgIntrospection/Reflector // modified file
OpenSceneGraph/src/osgIntrospection/Reflector.cpp // modified file
"
This commit is contained in:
@@ -21,4 +21,10 @@ namespace osgIntrospection
|
||||
// Avoid trying to register void & / const void &, which are
|
||||
// illegal types.
|
||||
}
|
||||
template<>
|
||||
void Reflector<void>::init_void_converter()
|
||||
{
|
||||
// Avoid
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user