local variables of static member functions

后端 未结 4 1267
终归单人心
终归单人心 2021-02-19 06:25

Today we came accross a problem concerning static member functions in an multithreaded environment. The question we asked ourselves and couldn\'t find a satisfying answer is: ar

4条回答
  •  情话喂你
    2021-02-19 07:06

    The storage class of a, b, and c are (implicitly) auto which usually means on the call stack. They don't "inherit" static storage class from the method signature (which is a different meaning of static (yay for grossly overloaded keywords!)).

提交回复
热议问题