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

Template variables usage #650

Open
schaumb opened this issue Oct 15, 2023 · 0 comments
Open

Template variables usage #650

schaumb opened this issue Oct 15, 2023 · 0 comments
Labels
Kind: Enhancement 🌟 Level: Moderate (2) Plugin: C++ Issues related to the parsing and presentation of C++ projects.

Comments

@schaumb
Copy link
Collaborator

schaumb commented Oct 15, 2023

In the following example, the VAR variable is different than VAR<double>, this is why from the definition it cannot seen where is used. Using is another different node.

template<class T>
constexpr T VAR = T{};

func(VAR<double>);

using NS::VAR; // doesn't linked to variable
@mcserep mcserep added Kind: Enhancement 🌟 Plugin: C++ Issues related to the parsing and presentation of C++ projects. labels Oct 18, 2023
@mcserep mcserep changed the title C++: Template variables usage Template variables usage Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kind: Enhancement 🌟 Level: Moderate (2) Plugin: C++ Issues related to the parsing and presentation of C++ projects.
Projects
None yet
Development

No branches or pull requests

2 participants