Reputation: 21
I read the following different sources,
It is clearly stated that static data members are initialized before main() then,
Please explain with some clear examples.
Upvotes: 0
Views: 644
Reputation: 297
There is no problem using static members and inline methods.
You can find some similar discussion about static + inline here: static variables in an inlined function
Even if it talks about static variables, the mechanism is similar.
Upvotes: 3