On Fri, 2007-07-20 at 17:31 +0200, Niklas Nebel wrote: > Kohei Yoshida wrote: > >> or with an any containing the old or new struct? > > > > This is doable. But we still need to know the filter type before > > unpacking the data from Any so that we can use the correct struct > > instance to unpack it to. So, I still think that we should have some > > means to explicitly specify the filter type even when using Any type. > > An any has reliable type information about its content. Something like > > if (aAny.getValueType().equals(cppu::UnoType<sheet::MyStruct>::get())) > > or just > > sheet::MyStruct aStruct; > if (aAny >>= aStruct) > > is already used everywhere.
Ah, nice. I was looking for something like this. So, I guess the suggested approach is doable. Kohei --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
