cpisz wrote:
class SomeClass;
What does it mean?
http://www.google.com/search?q=forward+declarations
It means the header file knows the class's name but not its size or members.
C++ code needs to see a class's body to know its size and members. If code
only needs the name (such as to declare a reference), then a header may omit
compiling the header containing that SomeClass, and thus omits every header
that header calls.
Forward declarations become important as a program grows because they
prevent small changes to rare headers from making everything recompile for
no reason. Google "compilation firewall".
If you see it right above its definition, someone was being officious
without adding value.
--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!