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

Incorrect templated static member variable initialization #427

Closed
JHBonarius opened this issue Dec 13, 2021 · 1 comment
Closed

Incorrect templated static member variable initialization #427

JHBonarius opened this issue Dec 13, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@JHBonarius
Copy link

I tried to help somebody on Stack overflow and got this issue: link

You can see that

template<int val> int MyClass<val>::var = val;

Is only displayed for one of the three instantiations... and that one is mangled up with the endif macro:

#endiint MyClass<9>::var = 9;

Please let me know if you need more information. And thanks for the tool!

@andreasfertig
Copy link
Owner

Hello @JHBonarius,

nice one! Thanks for reporting this issue. A fix is on its way!

Andreas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants