"Dmitry Timoshkov" dmitry@codeweavers.com wrote:
"Andrew Talbot" Andrew.Talbot@talbotville.com wrote:
Given (for a type T) that const T * and T const * are equivalent, and given the right-to-left nature of pointer declarations, am I not right in thinking that const LPLVCOLUMN pcol is really equivalent to:
LVCOLUMN * const pcol;
This one is an equivalent of 'LPLVCOLUMN pcol';
not
const LVCOLUMN *pcol;
?
I think yes. A simple test with MSVC compiler and gcc confirms that as well.
Sorry for the ambiguous answer, I missed "not" in "am I not", and it slightly confused me, leading to an inversed logic in thinking.