In Thinking in C++ Volume 1, chapter 16: Introduction to Templates. The context:
Notice that instead of just saying:
friend iterator; // Make it a friend
This code has:
friend class iterator; // Make it a friend
This is important because the name "iterator" is already in scope, from an included file.
What does Eckel really mean above?
It seems friend iterator
compiles correctly and I can't see the differences. Can anyone tell the answer? Thanks
elaborated type specifier
means, because y'know, standardese isn't for everyone. :) – Diathermic