axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa_abeysin...@yahoo.com>
Subject Memory cleaning of generated C++ array code
Date Thu, 02 Sep 2004 05:12:28 GMT
Hi All,
    In case of Arrays, I noticed that the WSDL2WS tool is generating a struct.

e.g.
typedef struct SOAPStruct_ArrayTag
{
        SOAPStruct* m_Array;
        int m_Size;
} SOAPStruct_Array;


The trouble here is that in case of returned values/parameters the user has to delete the
m_Array
mamber explicitly.

I think a more cleaner way would be to use a class here and use a destructor to clean memory.
(I mean for C++ code)

Is there any specific reason to use struct here in C++ code?
Is it OK if I try to change this to a class?

Thanks,
Samisa...


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

Mime
View raw message