CodeCompass icon indicating copy to clipboard operation
CodeCompass copied to clipboard

Template variables usage

Open schaumb opened this issue 2 years ago • 0 comments

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

schaumb avatar Oct 15 '23 19:10 schaumb