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.

Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to