[EISA] const correctness in EISA

William R. Otte wotte at dre.vanderbilt.edu
Wed Dec 3 14:15:03 CST 2008


Hi folks -

I am looking through the EISA code, and I had a question.... there are  
several instances similar to the following where the intent of the  
const is essentially meaningless:

EISA_EINode_i * const einode ();

which means the method returns a const pointer to a mutable object,  
which in this case the const pointer in question is a temporary and  
ignored by some compilers.

Is the intent to make the return value pointer to a constant object, ie:
const EISA_EINode_i * einode ();

or the method:
EISA_EINode_i * einode () const;

or is it exactly as intended?

thanks,
/-Will
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2599 bytes
Desc: not available
Url : http://list.isis.vanderbilt.edu/pipermail/eisa/attachments/20081203/6a734ccc/attachment.bin 


More information about the EISA mailing list