schorsch312
schorsch312

Reputation: 5714

C++: qualifier to forbid static variable access

Is there some way to forbid in a function to access global static variables?

I would like write something like this

void bar () noStatic {...}

My goal is to make sure I don´t have unexpected side effects of large lagacy functions.

Upvotes: -1

Views: 53

Answers (0)

Related Questions