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:
Robert Osfield
2007-07-27 17:16:18 +00:00
parent 5faeead2c6
commit f38be8c7a8
2 changed files with 50 additions and 17 deletions

View File

@@ -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
}
}