Say I have:
class A {
public:
static void DoStuff();
// ... more methods here ...
};
And later on I have a function that wants to call DoStuff:
B::SomeFunction(A* a_ptr) {
Is it better to say:
a_ptr->DoStuff();
}
Or is the following better even though I have an instance pointer:
A::DoStuff()
}
This is purely a matter of style, but I'd like to get some informed opinions before I make a decision.