First, let me say that, due to operator precedence, this doesn't mean what you think it does and therefore won't compile:



*iter.getname();


This does: