K
ken
I am getting this error from a gcc compile and I was wondering whether
this was 100% valid. This seems a little extreme to me the c++ cast
operators appear to only work on objects which defeats the purpose of
them. I had to remove the C++ cast and change to a C one in order for
gcc to accept it, we are using permissive and I am getting rid of it. Is
this truly correct?
const ::rtl::OUString sFactoryCreationFunc =
::rtl::OUString::createFromAscii("createDataAccessToolsFactory");>
- getDbToolsClientFactoryFunction() = reinterpret_cast<createDataAccessToolsFactoryFunction>(>
+ // reinterpret_cast<createDataAccessToolsFactoryFunction> removed for gcc permissive >
+ getDbToolsClientFactoryFunction() = (createDataAccessToolsFactoryFunction)(>
osl_getSymbol(getDbToolsClientModule(), sFactoryCreationFunc.pData));
Any comments or better solutions appreciated.
KenF
this was 100% valid. This seems a little extreme to me the c++ cast
operators appear to only work on objects which defeats the purpose of
them. I had to remove the C++ cast and change to a C one in order for
gcc to accept it, we are using permissive and I am getting rid of it. Is
this truly correct?
const ::rtl::OUString sFactoryCreationFunc =
::rtl::OUString::createFromAscii("createDataAccessToolsFactory");>
- getDbToolsClientFactoryFunction() = reinterpret_cast<createDataAccessToolsFactoryFunction>(>
+ // reinterpret_cast<createDataAccessToolsFactoryFunction> removed for gcc permissive >
+ getDbToolsClientFactoryFunction() = (createDataAccessToolsFactoryFunction)(>
osl_getSymbol(getDbToolsClientModule(), sFactoryCreationFunc.pData));
Any comments or better solutions appreciated.
KenF