Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

成员变量引用栈空间问题 #2

Closed
viennadd opened this issue Dec 28, 2016 · 0 comments
Closed

成员变量引用栈空间问题 #2

viennadd opened this issue Dec 28, 2016 · 0 comments

Comments

@viennadd
Copy link

viennadd commented Dec 28, 2016

193

public:
    /** @brief This constructor is used when registering this class */
    CheckMemoryLeakInFunction() : Check(myName()), CheckMemoryLeak(0, 0, Standards()), symbolDatabase(NULL)
    { }

CheckMemoryLeak(0, 0, Standards())
构造函数把Standards()临时栈空间绑到 standard 引用里了,可能会发生问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants