2 ms·
#5 > If you'll tolerate my hypocrisy for a moment, here's my suggestion: try to avoid putting the const at the beginning like that Or you could not do that, a
by Arelius 12y ago
#5
> If you'll tolerate my hypocrisy for a moment, here's my suggestion: try to avoid putting the const at the beginning like that
Or you could not do that, and put const in the least ambiguous place, and since you rarely have a 'type* const ' it works very well just using:
const type*
for pointers to const types, and
type* const
for const pointers to types, and entirely unambiguous.