[omniORB] Corba union waste of space?
Michael Teske
subscribe at teskor.de
Tue Jan 6 21:57:57 GMT 2009
Bailey, Kendall wrote:
>> 2. (ugly trick): In order for placement new to work 100% correct, I need to call
>> destructors explicitely. Unfortunately I only have the type name
>> :CORBA::String_member and need to call ~_CORBA_String_member(), because it's a
>> typedef. My ugly hack is to replace ::CORBA:: with _CORBA_, but I really do not
>> like it, as it will probably break with other types.
>>
>>
>> Any ideas?
>>
>
> If I understand the issue, it seems a simple template function would do the trick. Something like this?
>
> template<typename T>
> destroy_union_member( T* p )
> {
> p->~T();
> }
Of course, thank you very much!
Greetings,
Michael
More information about the omniORB-list
mailing list