how to avoid static member function when using gsl with c++

后端 未结 4 808
小鲜肉
小鲜肉 2020-11-28 14:21

I would like to use GSL within a c++ class without declaring member functions as static. The reason for this is because I don\'t know them too well and I\'m not

4条回答
  •  萌比男神i
    2020-11-28 15:24

    Why are you worried about the static function in this case? Variables and/or objects declared in a static function are not shared between different threads unless they are static themselves (which in your case they are not).

    Is your code failing to do something?

提交回复
热议问题