View Single Post
Old Dec 27th, 2006, 6:30 PM   #5
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
Assuming all of your functions are static, there is no difference between the two approaches. A name of the struct (or class) is, in this context, a namespace. That is, among other things, why the syntax "Tool::foo();" works for calling Tool::foo() in both cases.

The example given by peaceofpi does not work, as the name of an object is not a namespace.
grumpy is offline   Reply With Quote