CodeCompass
CodeCompass copied to clipboard
Template variables usage
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