Skip to content

Template variables usage #650

Open
Open
@schaumb

Description

@schaumb

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions