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 sFactoryCreatio nFunc =
::rtl::OUString ::createFromAsc ii("createDataA ccessToolsFacto ry");>
- getDbToolsClien tFactoryFunctio n() = reinterpret_cas t<createDataAcc essToolsFactory Function>(>
+ // reinterpret_cas t<createDataAcc essToolsFactory Function> removed for gcc permissive >
+ getDbToolsClien tFactoryFunctio n() = (createDataAcce ssToolsFactoryF unction)(>
osl_getSymbol(g etDbToolsClient Module(), sFactoryCreatio nFunc.pData));
Any comments or better solutions appreciated.
KenF
Comment