RE: [Axis2C] Casting away const

2008-01-10 Thread Alastair FETTES
ssage- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 09, 2008 9:13 PM To: Apache AXIS C User List Subject: Re: [Axis2C] Casting away const > It looks to me it is a bug. axiom_attribute_get_value should be > returning a const axis2_char_t. Yes, I think you are co

Re: [Axis2C] Casting away const

2008-01-09 Thread Senaka Fernando
> It looks to me it is a bug. axiom_attribute_get_value should be > returning a const axis2_char_t. Yes, I think you are correct here. But, even if we do return a const, casting can do the trick isn't it? Take a situation where we return a non-const ref through a const return statement. Would a bo

Re: [Axis2C] Casting away const

2008-01-09 Thread Samisa Abeysinghe
It looks to me it is a bug. axiom_attribute_get_value should be returning a const axis2_char_t. Samisa... Alastair FETTES wrote: Axis2C Developers: There seems to be a fundamental problem with functions that return values of type axis2_chart_t*. We have only investigated a couple of them

[Axis2C] Casting away const

2008-01-09 Thread Alastair FETTES
Axis2C Developers: There seems to be a fundamental problem with functions that return values of type axis2_chart_t*. We have only investigated a couple of them but it appears that const values are being casted away in some instances. Please view the following example: AXIS2_EXTERN axis2_char_