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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.