|
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.
|