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

nondependent name lookup members #7

Open
cloudwu opened this issue Dec 13, 2017 · 0 comments
Open

nondependent name lookup members #7

cloudwu opened this issue Dec 13, 2017 · 0 comments

Comments

@cloudwu
Copy link

cloudwu commented Dec 13, 2017

libIME/ComPtr.h

Line 142 in c246a5d

p->QueryInterface(__uuidof(T), (void**)&p_);

g++ may raise an error : error: 'p_' was not declared in this scope .

Use (void**)&(this->p_) would be better.

See https://stackoverflow.com/questions/1120833/derived-template-class-access-to-base-class-member-data
https://isocpp.org/wiki/faq/templates#nondependent-name-lookup-members

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

1 participant