最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

C++: qualifier to forbid static variable access - Stack Overflow

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论